mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
One more time.
This commit is contained in:
parent
81b487159b
commit
7d256d0f7b
1 changed files with 4 additions and 7 deletions
|
@ -283,20 +283,17 @@ class FolderTest extends CakeTestCase {
|
||||||
$this->assertTrue($File->create());
|
$this->assertTrue($File->create());
|
||||||
|
|
||||||
$this->assertTrue($Folder->chmod($new, 0755, true));
|
$this->assertTrue($Folder->chmod($new, 0755, true));
|
||||||
$this->assertTrue($Folder->chmod($new, 0744, true, array('skip_me.php', 'test2')));
|
$perms = substr(sprintf('%o', fileperms($new . DS . 'test2')), -4);
|
||||||
|
$this->assertEquals($perms, '0755');
|
||||||
|
|
||||||
$perms = substr(sprintf('%o', fileperms($new . DS . 'test1')), -4);
|
$this->assertTrue($Folder->chmod($new, 0744, true, array('skip_me.php', 'test2')));
|
||||||
$this->assertEquals($perms, '0744');
|
|
||||||
|
|
||||||
$perms = substr(sprintf('%o', fileperms($new . DS . 'test2')), -4);
|
$perms = substr(sprintf('%o', fileperms($new . DS . 'test2')), -4);
|
||||||
$this->assertEquals($perms, '0755');
|
$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');
|
$this->assertEquals($perms, '0744');
|
||||||
|
|
||||||
$perms = substr(sprintf('%o', fileperms($new . DS . 'skip_me.php')), -4);
|
|
||||||
$this->assertEquals($perms, '0755');
|
|
||||||
|
|
||||||
$Folder->delete($new);
|
$Folder->delete($new);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue