Skip to content
Permalink
Browse files

Fix failing tests.

TestPluginThree is now autoloaded by composer. We can no longer use that
plugin to test autoloading registration. Switch the autoload tests to
use TestPluginFive which is not in the autoloader.
  • Loading branch information...
markstory committed Apr 16, 2016
1 parent cce106b commit 389415f628b6881d587b5498d3df3de7871b7bcf
Showing with 3 additions and 4 deletions.
  1. +3 −4 tests/TestCase/Core/PluginTest.php
@@ -77,12 +77,12 @@ public function testUnload()
*/
public function testLoadSingleWithAutoload()
{
$this->assertFalse(class_exists('Company\TestPluginThree\Utility\Hello'));
Plugin::load('Company/TestPluginThree', [
$this->assertFalse(class_exists('Company\TestPluginFive\Utility\Hello'));
Plugin::load('Company/TestPluginFive', [
'autoload' => true,
]);
$this->assertTrue(
class_exists('Company\TestPluginThree\Utility\Hello'),
class_exists('Company\TestPluginFive\Utility\Hello'),
'Class should be loaded'
);
}
@@ -94,7 +94,6 @@ class_exists('Company\TestPluginThree\Utility\Hello'),
*/
public function testLoadSingleWithAutoloadAndBootstrap()
{
$this->assertFalse(class_exists('Company\TestPluginFive\Utility\Hello'));
Plugin::load(
'Company/TestPluginFive',
[

0 comments on commit 389415f

Please sign in to comment.
You can’t perform that action at this time.