Files
FOSSBilling/tests/Modules/System/SystemAdminTest.php
T
Belle Aerni 1b0fba1922 Various additional tests (#2069)
* Various additional tests

* Fixes

* More fixes

* Fixed my other mistakes

* Final fix
2024-01-15 00:46:19 -08:00

18 lines
435 B
PHP

<?php
declare(strict_types=1);
use APIHelper\Request;
use PHPUnit\Framework\TestCase;
final class SystemAdminTest extends TestCase
{
public function testClearCache(): void
{
// Clear the cache
$response = Request::makeRequest('admin/system/clear_cache');
$this->assertTrue($response->wasSuccessful(), $response->generatePHPUnitMessage());
$this->assertIsBool($response->getResult());
}
}