/**
* @param list<array<string, mixed>> $insertData
* @param list<list<string>> $expectedCodePathPairs
*/
protected function assertInsertViolations(array
$insertData, array
$expectedCodePathPairs, bool
$addDefaultTranslationCode = true
): void
{ if ($addDefaultTranslationCode) { $insertData =
$this->
addDefaultTranslationCodes($insertData);
} $insertData =
$this->
addDefaultLocales($insertData);
$this->
assertWriteStackViolations(function D
) use ($insertData): void
{ $this->languageRepository->
create($insertData,
$this->defaultContext
);
},
$expectedCodePathPairs);
} /**
* @param list<array<string, mixed>> $upsertData
* @param list<list<string>> $expectedCodePathPairs
*/
protected function assertUpsertViolations(array
$upsertData, array
$expectedCodePathPairs, bool
$addDefaultTranslationCode = true
): void
{