From 129d2cb0bc4090beac8039e660cf3c10e18668f0 Mon Sep 17 00:00:00 2001 From: Julius Beckmann Date: Mon, 11 Aug 2014 22:47:03 +0200 Subject: [PATCH] Added some chmod so the functional tests will work with a different user in ssh. --- .travis.yml | 4 ++-- tests/Ssh/FunctionalTests/SftpTest.php | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0db432d..8557b3e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,5 +16,5 @@ before_script: - echo `whoami`":1234" | sudo chpasswd script: - - phpunit --coverage-text - - phpunit --group functional + - php vendor/bin/phpunit --coverage-text + - php vendor/bin/phpunit --group functional diff --git a/tests/Ssh/FunctionalTests/SftpTest.php b/tests/Ssh/FunctionalTests/SftpTest.php index a3e61d4..f3397e2 100644 --- a/tests/Ssh/FunctionalTests/SftpTest.php +++ b/tests/Ssh/FunctionalTests/SftpTest.php @@ -59,6 +59,8 @@ protected function createFixtures() $fs->mkdir($this->tmpDir . '/bar'); $fs->mkdir($this->tmpDir . '/bar/alice'); $fs->dumpFile($this->tmpDir . '/bar/bob.txt', 'SomeContent'); + + $fs->chmod($this->tmpDir, 0777, 0000, true); } protected function createLargeDirectoryTree() @@ -79,6 +81,7 @@ protected function createLargeDirectoryTree() } } } + $fs->chmod($basePath, 0777, 0000, true); } public function testSymlinks() @@ -184,8 +187,8 @@ public function testListDirectory() array( 'files' => array($path . '/bob.txt'), 'directories' => array($path . '/alice'), - ), - $list + ), + $list ); }