Browse Source

Skip PluginAssetsShell tests on windows.

It causes side effects for UrlHelper tests on AppVeyor.
ADmad 11 years ago
parent
commit
d0b231c93b
1 changed files with 7 additions and 3 deletions
  1. 7 3
      tests/TestCase/Shell/PluginAssetsShellTest.php

+ 7 - 3
tests/TestCase/Shell/PluginAssetsShellTest.php

@@ -34,6 +34,12 @@ class PluginAssetsShellTest extends TestCase {
  */
 	public function setUp() {
 		parent::setUp();
+
+		$this->skipIf(
+			DIRECTORY_SEPARATOR === '\\',
+			'Skip PluginAssetsShell tests on windows to prevent side effects for UrlHelper tests on AppVeyor.'
+		);
+
 		$this->io = $this->getMock('Cake\Console\ConsoleIo', [], [], '', false);
 
 		$this->shell = $this->getMock(
@@ -96,9 +102,7 @@ class PluginAssetsShellTest extends TestCase {
 	public function testSymlinkWhenVendorDirectoryExits() {
 		Plugin::load('Company/TestPluginThree');
 
-		// @codingStandardsIgnoreStart
-		@mkdir(WWW_ROOT . 'company'); // Appveyor is unable to delete the folder in testSymlink() method
-		// @codingStandardsIgnoreEnd
+		mkdir(WWW_ROOT . 'company');
 
 		$this->shell->symlink();
 		$path = WWW_ROOT . 'company' . DS . 'test_plugin_three';