$this->entity->
postSave($storage, TRUE
);
} /**
* @covers ::preCreate
*/
public function testPreCreate() { // This method is internal, so check for errors on calling it only.
$storage =
$this->
createMock('\Drupal\Core\Entity\EntityStorageInterface'
);
$values =
[];
// Our mocked entity->preCreate() returns NULL, so assert that.
$this->
assertNull($this->entity->
preCreate($storage,
$values));
} /**
* @covers ::postCreate
*/
public function testPostCreate() { // This method is internal, so check for errors on calling it only.
$storage =
$this->
createMock('\Drupal\Core\Entity\EntityStorageInterface'
);
// Our mocked entity->postCreate() returns NULL, so assert that.
$this->
assertNull($this->entity->
postCreate($storage));
}