Updating PhpReader test

This commit is contained in:
Jose Lorenzo Rodriguez 2011-05-13 01:28:17 -04:30
parent da6e0c0589
commit 53037d90d6

View file

@ -85,11 +85,13 @@ class PhpReaderTest extends CakeTestCase {
App::build(array(
'plugins' => array(LIBS . 'tests' . DS . 'test_app' . DS . 'plugins' . DS)
), true);
CakePlugin::load('TestPlugin');
$reader = new PhpReader($this->path);
$result = $reader->read('TestPlugin.load');
$this->assertTrue(isset($result['plugin_load']));
$result = $reader->read('TestPlugin.load.php');
$this->assertTrue(isset($result['plugin_load']));
CakePlugin::unload();
}
}