mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
update dav tests
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
c6a48110bf
commit
4094a5e74a
1 changed files with 3 additions and 3 deletions
|
|
@ -164,7 +164,7 @@ class FileTest extends \Test\TestCase {
|
|||
public function testSimplePutFails($thrownException, $expectedException, $checkPreviousClass = true) {
|
||||
// setup
|
||||
$storage = $this->getMockBuilder(Local::class)
|
||||
->setMethods(['fopen'])
|
||||
->setMethods(['writeStream'])
|
||||
->setConstructorArgs([['datadir' => \OC::$server->getTempManager()->getTemporaryFolder()]])
|
||||
->getMock();
|
||||
\OC\Files\Filesystem::mount($storage, [], $this->user . '/');
|
||||
|
|
@ -182,11 +182,11 @@ class FileTest extends \Test\TestCase {
|
|||
|
||||
if ($thrownException !== null) {
|
||||
$storage->expects($this->once())
|
||||
->method('fopen')
|
||||
->method('writeStream')
|
||||
->will($this->throwException($thrownException));
|
||||
} else {
|
||||
$storage->expects($this->once())
|
||||
->method('fopen')
|
||||
->method('writeStream')
|
||||
->will($this->returnValue(false));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue