Browse Source

Add tests for Plugin path config.

Mark Story 11 years ago
parent
commit
97cecae80e
1 changed files with 13 additions and 0 deletions
  1. 13 0
      tests/TestCase/Core/PluginTest.php

+ 13 - 0
tests/TestCase/Core/PluginTest.php

@@ -120,6 +120,19 @@ class PluginTest extends TestCase
     }
 
     /**
+     * Test load() with path configuration data
+     *
+     * @return void
+     */
+    public function testLoadSingleWithPathConfig()
+    {
+        Configure::write('plugins.TestPlugin', APP);
+        Plugin::load('TestPlugin');
+        $this->assertEquals(APP . 'src' . DS, Plugin::classPath('TestPlugin'));
+    }
+
+
+    /**
      * Tests loading multiple plugins at once
      *
      * @return void