Skip to content

Commit

Permalink
Merge pull request #32 from Herzult/tests-with-different-user
Browse files Browse the repository at this point in the history
Using chmod in functional tests.
  • Loading branch information
h4cc committed Aug 11, 2014
2 parents 1ed552d + 129d2cb commit 0dac016
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 5 additions & 2 deletions tests/Ssh/FunctionalTests/SftpTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -79,6 +81,7 @@ protected function createLargeDirectoryTree()
}
}
}
$fs->chmod($basePath, 0777, 0000, true);
}

public function testSymlinks()
Expand Down Expand Up @@ -184,8 +187,8 @@ public function testListDirectory()
array(
'files' => array($path . '/bob.txt'),
'directories' => array($path . '/alice'),
),
$list
),
$list
);
}

Expand Down

0 comments on commit 0dac016

Please sign in to comment.