// 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));
} /**
* @covers ::preDelete
*/
public function testPreDelete() { // This method is internal, so check for errors on calling it only.
$storage =
$this->
createMock('\Drupal\Core\Entity\EntityStorageInterface'
);
// Our mocked entity->preDelete() returns NULL, so assert that.
$this->
assertNull($this->entity->
preDelete($storage,
[$this->entity
]));
}