Fixes unit test - normalize plugin paths for Win systems
This commit is contained in:
parent
8b45ed4178
commit
2160ddf3e5
|
|
@ -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]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue