Skip to content

Commit 16ed950

Browse files
committed
Fixed sub dir removal testing
1 parent bdfd11a commit 16ed950

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/Adapters/DirectoryTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ public function testCreate(LoopInterface $loop, FilesystemInterface $filesystem)
7070
$dir = $this->tmpDir . 'path';
7171
$this->await($filesystem->dir($dir)->createRecursive(), $loop);
7272
$this->assertTrue(file_exists($dir));
73+
$this->assertSame('0077', substr(sprintf('%o', fileperms($dir)), -4));
7374
}
7475

7576
/**
@@ -105,9 +106,9 @@ public function testRemoveSubDir(LoopInterface $loop, FilesystemInterface $files
105106
mkdir($subDir);
106107
$this->assertTrue(file_exists($dir));
107108
$this->assertTrue(file_exists($subDir));
108-
$this->await($filesystem->dir($dir)->remove(), $loop);
109+
$this->await($filesystem->dir($subDir)->remove(), $loop);
109110
$this->assertTrue(file_exists($dir));
110-
$this->assertTrue(file_exists($subDir));
111+
$this->assertFalse(file_exists($subDir));
111112
}
112113

113114
/**

0 commit comments

Comments
 (0)