mirror of
https://github.com/Karaka-Management/oms-Auditor.git
synced 2026-02-16 13:38:41 +00:00
fix tests and replace file_exists
This commit is contained in:
parent
28c751003d
commit
e25201b2fc
|
|
@ -37,6 +37,9 @@ class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
protected ApplicationAbstract $app;
|
protected ApplicationAbstract $app;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Modules\Auditor\Controller\ApiController
|
||||||
|
*/
|
||||||
protected ModuleAbstract $module;
|
protected ModuleAbstract $module;
|
||||||
|
|
||||||
protected function setUp() : void
|
protected function setUp() : void
|
||||||
|
|
@ -137,6 +140,10 @@ class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
||||||
self::assertTrue($found);
|
self::assertTrue($found);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @covers Modules\Auditor\Controller\ApiController
|
||||||
|
* @group module
|
||||||
|
*/
|
||||||
public function testLogUpdateWithoutChange() : void
|
public function testLogUpdateWithoutChange() : void
|
||||||
{
|
{
|
||||||
$logs = AuditMapper::getAll();
|
$logs = AuditMapper::getAll();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user