Skip to content

Commit

Permalink
file_exists has no mock while scanning a storage, it gives bool false…
Browse files Browse the repository at this point in the history
… as a mimetype
  • Loading branch information
VicDeo committed Jul 19, 2017
1 parent c0dd51a commit 22a7268
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/lib/Files/ViewTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1800,9 +1800,8 @@ public function testLockBasicOperation(
mkdir($realPath . '/files');
mkdir($realPath . '/files/dir');
file_put_contents($realPath . '/files/test.txt', 'blah');
$storage->getScanner()->scan('files');

$storage->expects($this->once())
$storage->expects($this->atLeastOnce())
->method($operation)
->will($this->returnCallback(
function () use ($view, $lockedPath, &$lockTypeDuring, $operation) {
Expand Down

0 comments on commit 22a7268

Please sign in to comment.