Browse Source

Try to fix build.

mark_story 14 years ago
parent
commit
2d343070fe
1 changed files with 4 additions and 4 deletions
  1. 4 4
      lib/Cake/Test/Case/Utility/FolderTest.php

+ 4 - 4
lib/Cake/Test/Case/Utility/FolderTest.php

@@ -264,7 +264,7 @@ class FolderTest extends CakeTestCase {
 	public function testChmod() {
 		$this->skipIf(DIRECTORY_SEPARATOR === '\\', 'Folder permissions tests not supported on Windows.');
 
-		$path = CAKE . 'Console' . DS . 'Templates' . DS . 'skel';
+		$path = TMP;
 		$Folder = new Folder($path);
 
 		$subdir = 'test_folder_new';
@@ -283,16 +283,16 @@ class FolderTest extends CakeTestCase {
 		$this->assertTrue($File->create());
 
 		$this->assertTrue($Folder->chmod($new, 0755, true));
-		$this->assertTrue($Folder->chmod($new, 0777, true, array('skip_me.php', 'test2')));
+		$this->assertTrue($Folder->chmod($new, 0644, true, array('skip_me.php', 'test2')));
 
 		$perms = substr(sprintf('%o', fileperms($new . DS . 'test1')), -4);
-		$this->assertEquals($perms, '0777');
+		$this->assertEquals($perms, '0644');
 
 		$perms = substr(sprintf('%o', fileperms($new . DS . 'test2')), -4);
 		$this->assertEquals($perms, '0755');
 
 		$perms = substr(sprintf('%o', fileperms($new . DS . 'test1.php')), -4);
-		$this->assertEquals($perms, '0777');
+		$this->assertEquals($perms, '0644');
 
 		$perms = substr(sprintf('%o', fileperms($new . DS . 'skip_me.php')), -4);
 		$this->assertEquals($perms, '0755');