Fixes unit test - normalize plugin paths for Win systems

This commit is contained in:
Samuel Georges 2015-01-05 11:46:33 +11:00
parent 8b45ed4178
commit 2160ddf3e5
2 changed files with 3 additions and 3 deletions

View File

@ -211,7 +211,6 @@ class PluginManager
/**
* Returns the directory path to a plugin
*
*/
public function getPluginPath($id)
{
@ -220,7 +219,7 @@ class PluginManager
return null;
}
return $this->pathMap[$classId];
return File::normalizePath($this->pathMap[$classId]);
}
/**

View File

@ -72,7 +72,8 @@ class PluginManagerTest extends TestCase
{
$manager = PluginManager::instance();
$result = $manager->getPluginPath('October\Tester');
$this->assertEquals(base_path() . '/tests/fixtures/system/plugins/october/tester', $result);
$basePath = str_replace('\\', '/', base_path());
$this->assertEquals($basePath . '/tests/fixtures/system/plugins/october/tester', $result);
}
public function testGetPlugins()