You are here

public function ImportEntityManagerTest::testEntityUpdateNodeIsDuringSync in Acquia Content Hub 8

Tests the entityUpdate() method, node is during sync.

@covers ::entityUpdate

File

tests/src/Unit/ImportEntityManagerTest.php, line 128

Class

ImportEntityManagerTest
PHPUnit test for the ImportEntityManager class.

Namespace

Drupal\Tests\acquia_contenthub\Unit

Code

public function testEntityUpdateNodeIsDuringSync() {
  $node = $this
    ->createMock('\\Drupal\\node\\NodeInterface');
  $node->__contenthub_entity_syncing = TRUE;
  $this->contentHubEntitiesTracking
    ->expects($this
    ->never())
    ->method('loadImportedByDrupalEntity');
  $this->importEntityManager
    ->entityUpdate($node);
}