$this->connection->
executeStatement('DROP TABLE `_test_nullable`'
);
$this->connection->
executeStatement('DROP TABLE `_test_relation`'
);
$this->connection->
executeStatement('DROP TABLE `_test_nullable_translation`'
);
$this->connection->
executeStatement('DROP TABLE `_test_nullable_reference`'
);
parent::
tearDown();
} public function testWriteWithoutPermission(): void
{ $id = Uuid::
randomHex();
$context =
$this->
createWriteContext();
$definition =
$this->
getContainer()->
get(WriteProtectedDefinition::
class);
$data =
[ 'id' =>
$id,
'protected' => 'foobar',
];
$ex = null;
try { $this->
getWriter()->
insert($definition,
[$data],
$context);
}