'context' =>
$context, 'entity' => LocaleDefinition::ENTITY_NAME, 'criteria' =>
$criteria] );
$validator->
validate(Uuid::
randomHex(),
[$constraint]);
static::
assertCount(0,
$criteria->
getFilters());
static::
assertSame(50,
$criteria->
getLimit());
} public function testValidatorWorks(): void
{ $repository =
$this->
createRepository(LocaleDefinition::
class);
$context = Context::
createDefaultContext();
$id1 = Uuid::
randomHex();
$id2 = Uuid::
randomHex();
$repository->
create( [ ['id' =>
$id1, 'name' => 'Test 1', 'territory' => 'test', 'code' => 'test' .
$id1],
['id' =>
$id2, 'name' => 'Test 2', 'territory' => 'test', 'code' => 'test' .
$id2],
],
$context );