Skip to content

Commit 925fe55

Browse files
committed
fix tests
1 parent 1828c97 commit 925fe55

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

tests/Feature/Api/SiteControllerTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ public function testRegisteringASiteWithUrlAndKeyCreatesRow(): void
3737
"db_type" => "mysqli",
3838
"db_version" => "1.0.0",
3939
"cms_version" => "1.0.0",
40-
"server_os" => "Joomla OS 1.0.0"
40+
"server_os" => "Joomla OS 1.0.0",
41+
"update_requirement_state" => true
4142
]));
4243

4344
$this->app->bind(Connection::class, fn () => $mock);
@@ -170,7 +171,8 @@ protected function createMockSiteInDb(): Site
170171
"db_version" => "1.0.0",
171172
"cms_version" => "1.0.0",
172173
"server_os" => "Joomla OS 1.0.0",
173-
"last_seen" => Carbon::now()
174+
"last_seen" => Carbon::now(),
175+
"update_requirement_state" => true
174176
]);
175177

176178
$site->key = 'foobar123foobar123foobar123foobar123';

tests/Unit/Jobs/CheckSiteHealthTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ protected function getHealthCheckMock($overrides = [])
9595
"db_type" => "mysqli",
9696
"db_version" => "1.0.0",
9797
"cms_version" => "1.0.0",
98-
"server_os" => "Joomla OS 1.0.0"
98+
"server_os" => "Joomla OS 1.0.0",
99+
"update_requirement_state" => true
99100
];
100101

101102
return HealthCheck::from([

0 commit comments

Comments
 (0)