Fixes validator test

This commit is contained in:
Lucas Bartholemy 2022-11-09 14:43:47 +01:00
parent 0095428de9
commit aeb397d03d

View File

@ -32,8 +32,9 @@ class ContentContainerTest extends ContentModelTest
$contentContainer = new ContentContainer(['guid' => 'xyz']); $contentContainer = new ContentContainer(['guid' => 'xyz']);
$contentContainer->setPolymorphicRelation($user); $contentContainer->setPolymorphicRelation($user);
$this->assertFalse($contentContainer->save()); $this->assertFalse($contentContainer->save());
$this->assertNotEmpty($contentContainer->getErrors('class')); $this->assertNotEmpty($contentContainer->getErrors('pk'));
} }
public function testGuidRequired() public function testGuidRequired()