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