public function TranslationRequestManagerTest::testIsTranslationSubmissionMissedTrue in TMGMT Translator Smartling 8.4
Is translation submission missed: true.
File
- tests/
src/ Kernel/ TranslationRequestManagerTest.php, line 186
Class
- TranslationRequestManagerTest
- Tests TranslationRequestManagerTest class.
Namespace
Drupal\Tests\tmgmt_smartling\KernelCode
public function testIsTranslationSubmissionMissedTrue() {
$translation_request_manager_mock = $this
->getMockBuilder(TranslationRequestManager::class)
->setConstructorArgs([
$this->apiWrapperMock,
$this->stateMock,
$this->loggerMock,
])
->setMethods(NULL)
->getMock();
$this
->assertEquals($translation_request_manager_mock
->isTranslationSubmissionMissed([
'translationRequestUid' => 'test',
]), TRUE);
$this
->assertEquals($translation_request_manager_mock
->isTranslationSubmissionMissed([
'translationRequestUid' => 'test',
'translationSubmissions' => [],
]), TRUE);
$this
->assertEquals($translation_request_manager_mock
->isTranslationSubmissionMissed([
'translationRequestUid' => 'test',
'translationSubmissions' => [
[],
],
]), TRUE);
}