Fixing ClassRegistry tests after plugin loader change

This commit is contained in:
Jose Lorenzo Rodriguez 2011-05-08 22:15:50 -04:30
parent 77788a965d
commit 2093b11296

View file

@ -265,6 +265,8 @@ class ClassRegistryTest extends CakeTestCase {
$TestRegistryPluginModel = ClassRegistry::isKeySet('TestRegistryPluginModel');
$this->assertFalse($TestRegistryPluginModel);
//Faking a plugin
CakePlugin::load('RegistryPlugin', array('path' => '/fake/path'));
$TestRegistryPluginModel = ClassRegistry::init('RegistryPlugin.TestRegistryPluginModel');
$this->assertTrue(is_a($TestRegistryPluginModel, 'TestRegistryPluginModel'));