You are here

function BaseFlowTest::testJobFileDeletionInDashboardNoTranslatorAssigned in TMGMT Translator Smartling 8.4

Same name and namespace in other branches
  1. 8.3 tests/src/Kernel/BaseFlowTest.php \Drupal\Tests\tmgmt_smartling\Kernel\BaseFlowTest::testJobFileDeletionInDashboardNoTranslatorAssigned()

Delete file in Smartling dashboard when corresponding TMGMT job is deleted.

No translator assigned to the job.

File

tests/src/Kernel/BaseFlowTest.php, line 67

Class

BaseFlowTest
Tests base flows.

Namespace

Drupal\Tests\tmgmt_smartling\Kernel

Code

function testJobFileDeletionInDashboardNoTranslatorAssigned() {
  $this->apiWrapperMock
    ->expects($this
    ->never())
    ->method('createAuditLogRecord');
  $this->apiWrapperMock
    ->expects($this
    ->never())
    ->method('deleteFile');
  $translate_job = $this
    ->createJobWithItems([], NULL);
  $translate_job
    ->delete();
}