Skip to content

Commit

Permalink
Ensure mock returns valid response
Browse files Browse the repository at this point in the history
  • Loading branch information
frankdejonge committed Dec 13, 2019
1 parent 815c215 commit de4157c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/WebDAVTests.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ protected function getMemoryLimit()
public function testUpdate()
{
$mock = $this->getClient();
$mock->shouldReceive('request')->once();
$mock->shouldReceive('request')
->once()
->andReturn(['statusCode' => 201]);
$adapter = new WebDAVAdapter($mock);
$this->assertInternalType('array', $adapter->update('something', 'something', new Config()));
}
Expand Down

0 comments on commit de4157c

Please sign in to comment.