@@ -44,24 +44,6 @@ public function tearDown() {
44
44
Plugin::unload ();
45
45
}
46
46
47
- /**
48
- * Test the plugin namespace
49
- *
50
- * @return void
51
- */
52
- public function testGetNamespace () {
53
- Plugin::load ('TestPlugin ' );
54
- $ this ->assertEquals ('TestPlugin ' , Plugin::getNamespace ('TestPlugin ' ));
55
-
56
- $ this ->assertEquals ('TestPluginTwo ' , Plugin::getNamespace ('TestPluginTwo ' ));
57
-
58
- Plugin::load ('Company\TestPluginThree ' );
59
- $ this ->assertEquals ('Company\TestPluginThree ' , Plugin::getNamespace ('Company\TestPluginThree ' ));
60
-
61
- Plugin::load ('CustomPlugin ' , array ('namespace ' => 'Company\TestPluginThree ' ));
62
- $ this ->assertEquals ('Company\TestPluginThree ' , Plugin::getNamespace ('CustomPlugin ' ));
63
- }
64
-
65
47
/**
66
48
* Tests loading a single plugin
67
49
*
@@ -124,11 +106,6 @@ public function testLoadSingleWithBootstrap() {
124
106
Plugin::load ('Company\TestPluginThree ' , array ('bootstrap ' => true ));
125
107
$ this ->assertTrue (Plugin::loaded ('Company\TestPluginThree ' ));
126
108
$ this ->assertEquals ('loaded plugin three bootstrap ' , Configure::read ('PluginTest.test_plugin_three.bootstrap ' ));
127
-
128
- Configure::delete ('PluginTest.test_plugin_three.bootstrap ' );
129
- Plugin::load ('NewName ' , array ('namespace ' => 'Company\TestPluginThree ' , 'bootstrap ' => true ));
130
- $ this ->assertTrue (Plugin::loaded ('NewName ' ));
131
- $ this ->assertEquals ('loaded plugin three bootstrap ' , Configure::read ('PluginTest.test_plugin_three.bootstrap ' ));
132
109
}
133
110
134
111
/**
@@ -291,9 +268,9 @@ public function testLoadAll() {
291
268
* @return void
292
269
*/
293
270
public function testLoadAllWithPluginAlreadyLoaded () {
294
- Plugin::load ('PluginJs ' , ['namespace ' => ' Company\TestPluginJs ' ]);
295
- Plugin::loadAll ();
296
- $ this ->assertEquals ( ' Company\TestPluginJs ' , Plugin:: getNamespace ( ' PluginJs ' ));
271
+ Plugin::load ('Company\TestPluginThree ' , ['bootstrap ' => false ]);
272
+ Plugin::loadAll ([ ' bootstrap ' => true , ' ignoreMissing ' => true ] );
273
+ $ this ->assertEmpty (Configure:: read ( ' PluginTest.test_plugin_three.bootstrap ' ));
297
274
}
298
275
299
276
/**
0 commit comments