Changed quote strategy to BasicQuoteStrategy as AnsiQuoteStrategy seems to mess up the column names.

This commit is contained in:
Basilius Sauter
2019-04-02 21:12:02 +02:00
parent d7229858cc
commit 4d1ab9e763
5 changed files with 92 additions and 66 deletions
+14
View File
@@ -259,4 +259,18 @@ class ViewpointTest extends CoreModelTestCase
$this->assertNull($viewpoint->findActionById("anId"));
}
public function testIfViewpointCanGetRemovedAndDeleted()
{
$em = $this->getEntityManager();
$testCharacter = $em->getRepository(Character::class)->find("10000000-0000-0000-0000-000000000002");
$this->getEntityManager()->remove($testCharacter->getViewpoint());
$testCharacter->setViewpoint(null);
$this->getEntityManager()->flush();
$this->getEntityManager()->clear();
$viewpoint = $em->getRepository(Viewpoint::class)->findOneBy(["owner" => "10000000-0000-0000-0000-000000000002"]);
$this->assertNull($viewpoint, "Viewpoint is not null");
}
}