You are here

public function PublisherTrackerTest::testDelete in Acquia Content Hub 8.2

Test case to delete the entity from tracking table.

@covers ::delete

Throws

\Drupal\Core\Entity\EntityStorageException

\Exception

File

tests/src/Kernel/PublisherTrackerTest.php, line 114

Class

PublisherTrackerTest
Tests publisher tracker methods.

Namespace

Drupal\Tests\acquia_contenthub\Kernel

Code

public function testDelete() {
  $this->publisherTracker
    ->delete($this->node
    ->uuid());
  $is_deleted = $this
    ->getTrackingTableColByUuid($this->node
    ->uuid());
  $this
    ->assertEmpty($is_deleted);
}