Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Run permission related tests with sudo
This prevents us from running into any permission oddities
  • Loading branch information
WyriHaximus committed Jul 6, 2018
commit b3af333df837bd6cd49d2ab2cf313770d16720f0
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ install:
- composer install -n

script:
- ./vendor/bin/phpunit --coverage-text
- ./vendor/bin/phpunit --exclude-group permissions
- export phploc=~/.phpenv/versions/$(phpenv version-name)/bin/php
- sudo $phploc ./vendor/bin/phpunit --group permissions
4 changes: 4 additions & 0 deletions tests/Adapters/DirectoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ public function testRemoveRecursive(LoopInterface $loop, FilesystemInterface $fi

/**
* @dataProvider filesystemProvider
* @group permissions
*/
public function testChmod(LoopInterface $loop, FilesystemInterface $filesystem)
{
Expand All @@ -152,6 +153,7 @@ public function testChmod(LoopInterface $loop, FilesystemInterface $filesystem)

/**
* @dataProvider filesystemProvider
* @group permissions
*/
public function testChmodRecursive(LoopInterface $loop, FilesystemInterface $filesystem)
{
Expand All @@ -175,6 +177,7 @@ public function testChmodRecursive(LoopInterface $loop, FilesystemInterface $fil

/**
* @dataProvider filesystemProvider
* @group permissions
*/
public function testChown(LoopInterface $loop, FilesystemInterface $filesystem)
{
Expand All @@ -196,6 +199,7 @@ public function testChown(LoopInterface $loop, FilesystemInterface $filesystem)

/**
* @dataProvider filesystemProvider
* @group permissions
*/
public function testChownRecursive(LoopInterface $loop, FilesystemInterface $filesystem)
{
Expand Down
2 changes: 2 additions & 0 deletions tests/Adapters/FileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ public function testCopyToDirectory(LoopInterface $loop, FilesystemInterface $fi

/**
* @dataProvider filesystemProvider
* @group permissions
*/
public function testChmod(LoopInterface $loop, FilesystemInterface $filesystem)
{
Expand All @@ -222,6 +223,7 @@ public function testChmod(LoopInterface $loop, FilesystemInterface $filesystem)

/**
* @dataProvider filesystemProvider
* @group permissions
*/
public function testChownUid(LoopInterface $loop, FilesystemInterface $filesystem)
{
Expand Down