private function SmartlingTest::checkGeneratedFile in TMGMT Translator Smartling 8
Checks if generated file exists and correct.
Parameters
$fileName:
$nodeTitle:
5 calls to SmartlingTest::checkGeneratedFile()
- SmartlingTest::testPushBackController in src/Tests/ SmartlingTest.php 
- Test push back controller.
- SmartlingTest::testSmartlingContextDebuggerSendContext in src/Tests/ SmartlingTest.php 
- Test Smartling context debugger: send context.
- SmartlingTest::testUploadFileAndDownloadTranslation in src/Tests/ SmartlingTest.php 
- Test upload and download translation.
- SmartlingTest::testUploadXlfChangeToXmlDownloadXlf in src/Tests/ SmartlingTest.php 
- Test uploading/downloading xlf file: rely on file name in tmgmt_job.
- SmartlingTest::testUploadXmlChangeToXlfDownloadXml in src/Tests/ SmartlingTest.php 
- Test uploading/downloading xml file: rely on file name in tmgmt_job.
File
- src/Tests/ SmartlingTest.php, line 182 
- Contains \Drupal\tmgmt_smartling\Tests\SmartlingTest.
Class
- SmartlingTest
- Basic tests for the Smartling translator.
Namespace
Drupal\tmgmt_smartling\TestsCode
private function checkGeneratedFile($fileName, $nodeTitle) {
  $url = \Drupal::service('stream_wrapper_manager')
    ->getViaUri(file_default_scheme() . "://tmgmt_sources/{$fileName}")
    ->getExternalUrl();
  $this
    ->drupalGet($url);
  $this
    ->assertResponse(200);
  $this
    ->assertRaw($nodeTitle);
}