$this->
assertFalse($this->entity->
isTranslatable());
} /**
* @covers ::preSaveRevision
*/
public function testPreSaveRevision() { // This method is internal, so check for errors on calling it only.
$storage =
$this->
createMock('\Drupal\Core\Entity\EntityStorageInterface'
);
$record =
new \
stdClass();
// Our mocked entity->preSaveRevision() returns NULL, so assert that.
$this->
assertNull($this->entity->
preSaveRevision($storage,
$record));
} /**
* Data provider for the ::getTypedData() test.
*
* The following entity data definitions, the first two being derivatives of
* the last definition, will be tested in order:
*
* 1. entity:$entity_type:$bundle
* 2. entity:$entity_type
* 3. entity
*
* @see \Drupal\Core\Entity\EntityBase::getTypedData()
* @see \Drupal\Core\Entity\EntityBase::getTypedDataClass()
* @see \Drupal\Core\Entity\Plugin\DataType\Deriver\EntityDeriver
*
* @return array
* Array of arrays with the following elements:
* - A bool whether to provide a bundle-specific definition.
* - A bool whether to provide an entity type-specific definition.
*/