public function BaseFlowTest::testRevisionInflation in TMGMT Translator Smartling 8.2
Test revision inflation.
File
- src/
Tests/ BaseFlowTest.php, line 112
Class
- BaseFlowTest
- Basic flow tests.
Namespace
Drupal\tmgmt_smartling\TestsCode
public function testRevisionInflation() {
if (!empty($this->smartlingPluginProviderSettings)) {
$providerSettings = $this->smartlingPluginProviderSettings;
$translator = $this
->setUpSmartlingProviderSettings($providerSettings);
$job = $this
->requestTranslationForNode($this->testNodeId, $this->targetLanguage, $translator);
$this
->drupalGet("/admin/tmgmt/jobs/1");
$this
->assertResponse(200);
$this
->assertNoText("has been accepted as");
$this
->assertNoText("Import of downloaded file was skipped: downloaded and existing translations are equal.");
$job
->getTranslatorPlugin()
->downloadTranslation($job);
$this
->drupalGet("/admin/tmgmt/jobs/1");
$this
->assertResponse(200);
$this
->assertText("has been accepted as");
$this
->assertNoText("Import of downloaded file was skipped: downloaded and existing translations are equal.");
$job
->getTranslatorPlugin()
->downloadTranslation($job);
$this
->drupalGet("/admin/tmgmt/jobs/1");
$this
->assertResponse(200);
$this
->assertText("Import of downloaded file was skipped: downloaded and existing translations are equal.");
$this
->deleteTestFile($job
->getTranslatorPlugin()
->getFileName($job));
}
else {
$this
->fail("Smartling settings file for simpletests not found.");
}
}