CodeExplorer addLanguagesWithDefaultLocales example
'name' => 'b',
],
];
$this->
assertInsertViolations([$a],
[]);
} public function testUpsertWithEmbeddedParentId(): void
{ // +a(+> b)
$b =
['id' => Uuid::
randomHex(), 'name' => 'a'
];
$this->
addLanguagesWithDefaultLocales([$b]);
$a =
[ 'id' => Uuid::
randomHex(),
'name' => 'a',
'parent' =>
[ 'id' =>
$b['id'
],
],
];
$this->
assertUpsertViolations([$a],
[]);
}