Skip to content

Commit

Permalink
Fixing ClassRegistry tests after plugin loader change
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed May 9, 2011
1 parent 77788a9 commit 2093b11
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Cake/tests/Case/Utility/ClassRegistryTest.php
Expand Up @@ -265,6 +265,8 @@ function testPluginAppModel() {
$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'));

Expand Down

0 comments on commit 2093b11

Please sign in to comment.