mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing ClassRegistry tests after plugin loader change
This commit is contained in:
parent
77788a965d
commit
2093b11296
1 changed files with 2 additions and 0 deletions
|
@ -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'));
|
||||
|
||||
|
|
Loading…
Reference in a new issue