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 f5b15c5 commit afdadc1Copy full SHA for afdadc1
tests/Unit/Jobs/UpdateSiteTest.php
@@ -61,23 +61,17 @@ public function testJobQuitsIfNoUpdateIsAvailable()
61
62
public function testJobQuitsIfRequirementsArentMet()
63
{
64
+ $this->expectExceptionMessage("Site does not meet requirements");
65
+
66
$site = $this->getSiteMock(
67
[
68
'checkHealth' => $this->getHealthCheckMock(['update_requirement_state' => false])
69
]
70
);
71
- Log::spy();
-
72
$object = new UpdateSite($site, "1.0.1");
73
$object->handle();
74
75
- Log::shouldHaveReceived('info')
76
- ->once()
77
- ->withArgs(function ($message) {
78
- return str_contains($message, 'Site does not meet requirements, abort');
79
- });
80
81
$this->assertTrue(true);
82
}
83
0 commit comments