'translations' =>
[ $locale->
getCode() =>
['name' => 'system translation'
],
],
] );
} public function testEmptyLanguageIdError(): void
{ $baseResource = '/api/category';
$headerName =
$this->
getLangHeaderName();
$langId = '';
$this->
getBrowser()->
request('GET',
$baseResource,
[],
[],
[$headerName =>
$langId]);
$response =
$this->
getBrowser()->
getResponse();
static::
assertEquals(412,
$response->
getStatusCode(),
$response->
getContent());
$data =
json_decode($response->
getContent(), true, 512, \JSON_THROW_ON_ERROR
);
static::
assertEquals(LanguageNotFoundException::LANGUAGE_NOT_FOUND_ERROR,
$data['errors'
][0
]['code'
]);
} public function testInvalidUuidLanguageIdError(): void
{