function BaseFlowTest::testJobFileDeletionInDashboardNotSmartlingTranslatorAssigned in TMGMT Translator Smartling 8.4
Same name and namespace in other branches
- 8.3 tests/src/Kernel/BaseFlowTest.php \Drupal\Tests\tmgmt_smartling\Kernel\BaseFlowTest::testJobFileDeletionInDashboardNotSmartlingTranslatorAssigned()
Delete file in Smartling dashboard when corresponding TMGMT job is deleted.
Not smartling translator assigned to the job.
File
- tests/
src/ Kernel/ BaseFlowTest.php, line 83
Class
- BaseFlowTest
- Tests base flows.
Namespace
Drupal\Tests\tmgmt_smartling\KernelCode
function testJobFileDeletionInDashboardNotSmartlingTranslatorAssigned() {
$this->apiWrapperMock
->expects($this
->never())
->method('createAuditLogRecord');
$this->apiWrapperMock
->expects($this
->never())
->method('deleteFile');
$translate_job = $this
->createJobWithItems([], $this->default_translator
->id());
$translate_job
->delete();
}