You are here

public function FileNameTest::testOriginalFilename in TMGMT Translator Smartling 8.4

Same name and namespace in other branches
  1. 8.3 tests/src/Functional/FileNameTest.php \Drupal\Tests\tmgmt_smartling\Functional\FileNameTest::testOriginalFilename()

Test not altered file name.

File

tests/src/Functional/FileNameTest.php, line 31

Class

FileNameTest
File name tests.

Namespace

Drupal\Tests\tmgmt_smartling\Functional

Code

public function testOriginalFilename() {
  $translator = $this
    ->setUpSmartlingProviderSettings($this->smartlingPluginProviderSettings);
  $job = $this
    ->requestTranslationForNode($this->testNodeId, $this->targetLanguage, $translator);
  $fileName = $job
    ->getTranslatorPlugin()
    ->getFileName($job);
  $this
    ->assertEqual($fileName, 'JobID1_en_fr.xml');
}