We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a463277 commit 20a4e10Copy full SHA for 20a4e10
1 file changed
tests/Integration/Jobs/RevokeSftpAccessJobTest.php
@@ -31,7 +31,8 @@ public function test_job_releases_back_to_queue_on_failure(): void
31
$node = Node::factory()->make(['uuid' => 'uuid-1234']);
32
33
$mock = $this->mock(DaemonServerRepository::class, function ($mock) {
34
- $mock->expects('setNode->deauthorize')->andThrows(new ConnectionException());
+ $mock->expects('setNode')->andReturnSelf();
35
+ $mock->expects('deauthorize')->andThrows(new ConnectionException());
36
});
37
38
$job = \Mockery::mock(RevokeSftpAccessJob::class, ['user-1', $node])->makePartial();
0 commit comments