You are here

public function FileNameTest::testOriginalFilename in TMGMT Translator Smartling 8.2

Test not altered file name.

File

src/Tests/FileNameTest.php, line 31

Class

FileNameTest
File name tests.

Namespace

Drupal\tmgmt_smartling\Tests

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');
  $this
    ->assertNotEqual($fileName, 'TEST_job_id_1.xml');
}