fix tests

This commit is contained in:
Dennis Eichhorn 2023-09-28 18:21:00 +00:00
parent 9ac329a5e0
commit c18753cd14

View File

@ -98,15 +98,14 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
$logs = AuditMapper::getAll()->execute();
foreach($logs as $log) {
var_dump($log);
if ($log->id > 0
&& $log->type === 1
&& $log->trigger === 'test-trigger'
&& $log->module === 'Auditor'
&& $log->ref === 'abc'
&& $log->content === 'def'
&& \strlen($log->content) > 2
&& $log->old === null
&& $log->new === \json_encode(['id' => 1, 'test' => true], \JSON_PRETTY_PRINT)
&& \strlen($log->new) > 3
) {
self::assertTrue(true);
return;