public function ImportEntityManagerTest::testEntityPresaveNodeHasNoOriginal in Acquia Content Hub 8
Tests the entityPresave() method, node has no original.
@covers ::entityPresave
File
- tests/
src/ Unit/ ImportEntityManagerTest.php, line 221
Class
- ImportEntityManagerTest
- PHPUnit test for the ImportEntityManager class.
Namespace
Drupal\Tests\acquia_contenthub\UnitCode
public function testEntityPresaveNodeHasNoOriginal() {
$node = $this
->createMock('\\Drupal\\node\\NodeInterface');
$this->contentHubEntitiesTracking
->expects($this
->never())
->method('loadImportedByDrupalEntity');
$this->importEntityManager
->entityPresave($node);
}