From 7d256d0f7b7ac57f3f6677eaf0f26af8d6c39ce2 Mon Sep 17 00:00:00 2001 From: mark_story Date: Sat, 10 Mar 2012 22:00:16 -0500 Subject: [PATCH] One more time. --- lib/Cake/Test/Case/Utility/FolderTest.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/lib/Cake/Test/Case/Utility/FolderTest.php b/lib/Cake/Test/Case/Utility/FolderTest.php index 37e479a1e..4ee0ae4cc 100644 --- a/lib/Cake/Test/Case/Utility/FolderTest.php +++ b/lib/Cake/Test/Case/Utility/FolderTest.php @@ -283,20 +283,17 @@ class FolderTest extends CakeTestCase { $this->assertTrue($File->create()); $this->assertTrue($Folder->chmod($new, 0755, true)); + $perms = substr(sprintf('%o', fileperms($new . DS . 'test2')), -4); + $this->assertEquals($perms, '0755'); + $this->assertTrue($Folder->chmod($new, 0744, true, array('skip_me.php', 'test2'))); - $perms = substr(sprintf('%o', fileperms($new . DS . 'test1')), -4); - $this->assertEquals($perms, '0744'); - $perms = substr(sprintf('%o', fileperms($new . DS . 'test2')), -4); $this->assertEquals($perms, '0755'); - $perms = substr(sprintf('%o', fileperms($new . DS . 'test1.php')), -4); + $perms = substr(sprintf('%o', fileperms($new . DS . 'test1')), -4); $this->assertEquals($perms, '0744'); - $perms = substr(sprintf('%o', fileperms($new . DS . 'skip_me.php')), -4); - $this->assertEquals($perms, '0755'); - $Folder->delete($new); }