mirror of
https://github.com/Karaka-Management/oms-Auditor.git
synced 2026-01-11 13:08:40 +00:00
fix tests
This commit is contained in:
parent
d7bbfcc657
commit
03110a0e87
|
|
@ -79,7 +79,7 @@ final class Autoloader
|
|||
$class = \strtr($class, '_\\', '//');
|
||||
|
||||
if (\stripos($class, 'Web/Backend') !== false || \stripos($class, 'Web/Api') !== false) {
|
||||
$class = \str_replace('Web/', 'Install/Application/', $class);
|
||||
$class = \is_dir(__DIR__ . '/Web') ? $class : \str_replace('Web/', 'Karaka/Web/', $class);
|
||||
}
|
||||
|
||||
$class2 = $class;
|
||||
|
|
|
|||
|
|
@ -103,9 +103,9 @@ final class ApiControllerTest extends \PHPUnit\Framework\TestCase
|
|||
&& $log->trigger === 'test-trigger'
|
||||
&& $log->module === 'Auditor'
|
||||
&& $log->ref === 'abc'
|
||||
&& \strlen($log->content) > 2
|
||||
&& \strlen($log->content) > 0
|
||||
&& $log->old === null
|
||||
&& \strlen($log->new) > 3
|
||||
&& \strlen($log->new) > 0
|
||||
) {
|
||||
self::assertTrue(true);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user