|
|
@@ -252,25 +252,4 @@ class AppTest extends TestCase {
|
|
|
$this->assertContains('ArticlesTable', $result);
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * test that pluginPath can find paths for plugins.
|
|
|
- *
|
|
|
- * @return void
|
|
|
- */
|
|
|
- public function testPluginPath() {
|
|
|
- Plugin::load(['TestPlugin', 'TestPluginTwo', 'Company/TestPluginThree']);
|
|
|
-
|
|
|
- $path = App::pluginPath('TestPlugin');
|
|
|
- $expected = TEST_APP . 'Plugin' . DS . 'TestPlugin' . DS;
|
|
|
- $this->assertPathEquals($expected, $path);
|
|
|
-
|
|
|
- $path = App::pluginPath('TestPluginTwo');
|
|
|
- $expected = TEST_APP . 'Plugin' . DS . 'TestPluginTwo' . DS;
|
|
|
- $this->assertPathEquals($expected, $path);
|
|
|
-
|
|
|
- $path = App::pluginPath('Company/TestPluginThree');
|
|
|
- $expected = TEST_APP . 'Plugin' . DS . 'Company' . DS . 'TestPluginThree' . DS;
|
|
|
- $this->assertPathEquals($expected, $path);
|
|
|
- }
|
|
|
-
|
|
|
}
|