mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
remove another oversight
This commit is contained in:
parent
8e27cf992f
commit
3175de7b3d
1 changed files with 6 additions and 6 deletions
|
@ -16,7 +16,7 @@ class CakePluginTest extends CakeTestCase {
|
|||
*/
|
||||
public function setUp() {
|
||||
App::build(array(
|
||||
'plugins' => array(CAKE_TESTS . 'test_app' . DS . 'Plugin' . DS)
|
||||
'plugins' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS)
|
||||
), true);
|
||||
}
|
||||
|
||||
|
@ -51,14 +51,14 @@ class CakePluginTest extends CakeTestCase {
|
|||
CakePlugin::load('TestPlugin');
|
||||
$expected = array('TestPlugin');
|
||||
$this->assertEquals($expected, CakePlugin::loaded());
|
||||
|
||||
|
||||
CakePlugin::unload('TestPlugin');
|
||||
$this->assertEquals(array(), CakePlugin::loaded());
|
||||
|
||||
CakePlugin::load('TestPlugin');
|
||||
$expected = array('TestPlugin');
|
||||
$this->assertEquals($expected, CakePlugin::loaded());
|
||||
|
||||
|
||||
CakePlugin::unload('TestFakePlugin');
|
||||
$this->assertEquals($expected, CakePlugin::loaded());
|
||||
}
|
||||
|
@ -177,10 +177,10 @@ class CakePluginTest extends CakeTestCase {
|
|||
*/
|
||||
public function testPath() {
|
||||
CakePlugin::load(array('TestPlugin', 'TestPluginTwo'));
|
||||
$expected = CAKE_TESTS . 'test_app' . DS . 'Plugin' . DS . 'TestPlugin' . DS;
|
||||
$expected = CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS . 'TestPlugin' . DS;
|
||||
$this->assertEquals(CakePlugin::path('TestPlugin'), $expected);
|
||||
|
||||
$expected = CAKE_TESTS . 'test_app' . DS . 'Plugin' . DS . 'TestPluginTwo' . DS;
|
||||
$expected = CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS . 'TestPluginTwo' . DS;
|
||||
$this->assertEquals(CakePlugin::path('TestPluginTwo'), $expected);
|
||||
}
|
||||
|
||||
|
@ -243,4 +243,4 @@ class CakePluginTest extends CakeTestCase {
|
|||
public function pluginBootstrap() {
|
||||
Configure::write('CakePluginTest.test_plugin.bootstrap', 'called plugin bootstrap callback');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue