Example #1
0
 /**
  * @inheritdoc
  *
  * @param AttachmentField $actualModel
  */
 protected function assertModel(array $expectedData, AbstractModel $actualModel)
 {
     $this->assertEquals($expectedData['title'], $actualModel->getTitle());
     $this->assertEquals($expectedData['value'], $actualModel->getValue());
     $this->assertEquals($expectedData['short'], $actualModel->isShort());
 }
Example #2
0
 /**
  * @inheritdoc
  *
  * @param Customizable $actualModel
  */
 protected function assertModel(array $expectedData, AbstractModel $actualModel)
 {
     $this->assertEquals($expectedData['value'], $actualModel->getValue());
     $this->assertEquals($expectedData['last_set'], $actualModel->getLastSet()->format('U'));
     $this->assertEquals($expectedData['creator'], $actualModel->getCreator());
 }