Skip to content

Commit 20a4e10

Browse files
committed
fix mock in test
1 parent a463277 commit 20a4e10

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/Integration/Jobs/RevokeSftpAccessJobTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ public function test_job_releases_back_to_queue_on_failure(): void
3131
$node = Node::factory()->make(['uuid' => 'uuid-1234']);
3232

3333
$mock = $this->mock(DaemonServerRepository::class, function ($mock) {
34-
$mock->expects('setNode->deauthorize')->andThrows(new ConnectionException());
34+
$mock->expects('setNode')->andReturnSelf();
35+
$mock->expects('deauthorize')->andThrows(new ConnectionException());
3536
});
3637

3738
$job = \Mockery::mock(RevokeSftpAccessJob::class, ['user-1', $node])->makePartial();

0 commit comments

Comments
 (0)