mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
load the TestPlugin to avoid missing plugin exception in testInitialize()
This commit is contained in:
parent
76b3f5a21c
commit
aac8f6880f
1 changed files with 1 additions and 0 deletions
|
@ -172,6 +172,7 @@ class ShellTest extends CakeTestCase {
|
||||||
'plugins' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS),
|
'plugins' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS),
|
||||||
'models' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Model' . DS)
|
'models' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Model' . DS)
|
||||||
), true);
|
), true);
|
||||||
|
CakePlugin::load('TestPlugin');
|
||||||
|
|
||||||
$this->Shell->uses = array('TestPlugin.TestPluginPost');
|
$this->Shell->uses = array('TestPlugin.TestPluginPost');
|
||||||
$this->Shell->initialize();
|
$this->Shell->initialize();
|
||||||
|
|
Loading…
Add table
Reference in a new issue