Skip to content

Commit afdadc1

Browse files
committed
fix tests
1 parent f5b15c5 commit afdadc1

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

tests/Unit/Jobs/UpdateSiteTest.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,23 +61,17 @@ public function testJobQuitsIfNoUpdateIsAvailable()
6161

6262
public function testJobQuitsIfRequirementsArentMet()
6363
{
64+
$this->expectExceptionMessage("Site does not meet requirements");
65+
6466
$site = $this->getSiteMock(
6567
[
6668
'checkHealth' => $this->getHealthCheckMock(['update_requirement_state' => false])
6769
]
6870
);
6971

70-
Log::spy();
71-
7272
$object = new UpdateSite($site, "1.0.1");
7373
$object->handle();
7474

75-
Log::shouldHaveReceived('info')
76-
->once()
77-
->withArgs(function ($message) {
78-
return str_contains($message, 'Site does not meet requirements, abort');
79-
});
80-
8175
$this->assertTrue(true);
8276
}
8377

0 commit comments

Comments
 (0)