mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Try to fix build.
This commit is contained in:
parent
69ab443ed6
commit
2d343070fe
1 changed files with 4 additions and 4 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue