mirror of
https://github.com/Karaka-Management/oms-Admin.git
synced 2026-01-11 13:38:39 +00:00
fix tests
This commit is contained in:
parent
9f8a24cc0c
commit
73b4f8d9c0
|
|
@ -38,7 +38,7 @@ final class DataChangeMapper extends DataMapperFactory
|
|||
public const COLUMNS = [
|
||||
'data_change_id' => ['name' => 'data_change_id', 'type' => 'int', 'internal' => 'id'],
|
||||
'data_change_type' => ['name' => 'data_change_type', 'type' => 'string', 'internal' => 'type'],
|
||||
'data_change_hash' => ['name' => 'data_change_hash', 'type' => 'string', 'internal' => 'hash'],
|
||||
'data_change_hash' => ['name' => 'data_change_hash', 'type' => 'string', 'internal' => 'hash', 'private' => true],
|
||||
'data_change_data' => ['name' => 'data_change_data', 'type' => 'string', 'internal' => 'data'],
|
||||
'data_change_created_by' => ['name' => 'data_change_created_by', 'type' => 'int', 'internal' => 'createdBy'],
|
||||
'data_change_created_at' => ['name' => 'data_change_created_at', 'type' => 'DateTimeImmutable', 'internal' => 'createdAt'],
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ final class GroupMapperTest extends \PHPUnit\Framework\TestCase
|
|||
public function testCountMembers() : void
|
||||
{
|
||||
self::assertEquals([3 => 1, 1 => 2], GroupMapper::countMembers());
|
||||
self::assertEquals([], GroupMapper::countMembers(1));
|
||||
self::assertEquals([1 => 2], GroupMapper::countMembers(1));
|
||||
self::assertEquals([], GroupMapper::countMembers(2));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user