function BaseFlowTest::testJobFileDeletionInDashboardNoTranslatorAssigned in TMGMT Translator Smartling 8.3
Same name and namespace in other branches
- 8.4 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\KernelCode
function testJobFileDeletionInDashboardNoTranslatorAssigned() {
$this->apiWrapperMock
->expects($this
->never())
->method('createAuditLogRecord');
$this->apiWrapperMock
->expects($this
->never())
->method('deleteFile');
$translate_job = $this
->createJobWithItems([], NULL);
$translate_job
->delete();
}