mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-12-04 06:04:16 +09:00
* Various additional tests * Fixes * More fixes * Fixed my other mistakes * Final fix
23 lines
784 B
PHP
23 lines
784 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use APIHelper\Request;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
final class HealthTest extends TestCase
|
|
{
|
|
public function testIsFOSSBillingWorking(): void
|
|
{
|
|
$response = Request::makeRequest('guest/system/company');
|
|
$this->assertTrue($response->wasSuccessful(), $response->generatePHPUnitMessage());
|
|
}
|
|
|
|
public function testStartingPatchNotBehind(): void
|
|
{
|
|
$response = Request::makeRequest('admin/system/is_behind_on_patches');
|
|
$this->assertTrue($response->wasSuccessful(), $response->generatePHPUnitMessage());
|
|
$this->assertNotTrue($response->getResult()); // This should return false to indicate there are no patches available, meaning the `last_patch` number is correct for fresh installs.
|
|
}
|
|
}
|