You are here

private function DeleteAssetsTest::assertNoOperationShouldBeDone in Acquia Content Hub 8.2

Assert that no operation (entity lookup and deletion) would take place.

5 calls to DeleteAssetsTest::assertNoOperationShouldBeDone()
DeleteAssetsTest::testAnEmptyAssetList in tests/src/Unit/EventSubscriber/HandleWebhook/DeleteAssetsTest.php
Test empty asset payload functionality.
DeleteAssetsTest::testInitiatorSameAsClient in tests/src/Unit/EventSubscriber/HandleWebhook/DeleteAssetsTest.php
Test a webhook that was initiated by my own site.
DeleteAssetsTest::testNonDeleteCrud in tests/src/Unit/EventSubscriber/HandleWebhook/DeleteAssetsTest.php
Test successful non-delete crud operations.
DeleteAssetsTest::testNonSuccessfulStatus in tests/src/Unit/EventSubscriber/HandleWebhook/DeleteAssetsTest.php
Test an unsuccessful payload status.
DeleteAssetsTest::testUnsupportedAssetType in tests/src/Unit/EventSubscriber/HandleWebhook/DeleteAssetsTest.php
Test an unsupported asset type.

File

tests/src/Unit/EventSubscriber/HandleWebhook/DeleteAssetsTest.php, line 370

Class

DeleteAssetsTest
Tests the DeleteAssets webhook event subscriber.

Namespace

Drupal\Tests\acquia_contenthub\Unit\EventSubscriber\HandleWebhook

Code

private function assertNoOperationShouldBeDone() : void {
  $this->tracker
    ->getEntityByRemoteIdAndHash()
    ->shouldNotBeCalled();
  $this->tracker
    ->delete()
    ->shouldNotBeCalled();
  $this->entity
    ->delete()
    ->shouldNotBeCalled();
}