mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Updating PhpReader test
This commit is contained in:
parent
da6e0c0589
commit
53037d90d6
1 changed files with 2 additions and 0 deletions
|
@ -85,11 +85,13 @@ class PhpReaderTest extends CakeTestCase {
|
||||||
App::build(array(
|
App::build(array(
|
||||||
'plugins' => array(LIBS . 'tests' . DS . 'test_app' . DS . 'plugins' . DS)
|
'plugins' => array(LIBS . 'tests' . DS . 'test_app' . DS . 'plugins' . DS)
|
||||||
), true);
|
), true);
|
||||||
|
CakePlugin::load('TestPlugin');
|
||||||
$reader = new PhpReader($this->path);
|
$reader = new PhpReader($this->path);
|
||||||
$result = $reader->read('TestPlugin.load');
|
$result = $reader->read('TestPlugin.load');
|
||||||
$this->assertTrue(isset($result['plugin_load']));
|
$this->assertTrue(isset($result['plugin_load']));
|
||||||
|
|
||||||
$result = $reader->read('TestPlugin.load.php');
|
$result = $reader->read('TestPlugin.load.php');
|
||||||
$this->assertTrue(isset($result['plugin_load']));
|
$this->assertTrue(isset($result['plugin_load']));
|
||||||
|
CakePlugin::unload();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue