assertTrue($result->wasSuccessful(), $result->generatePHPUnitMessage()); $this->assertIsArray($result->getResult()); } public function testStartingPatchNotBehind(): void { $result = Request::makeRequest('admin/system/is_behind_on_patches'); $this->assertTrue($result->wasSuccessful(), $result->generatePHPUnitMessage()); $this->assertNotTrue($result->getResult()); // This should return false to indicate there are no patches available, meaning the `last_patch` number is correct for fresh installs. } }