public function SmartlingTest::testSmartlingContextDebuggerShowContext in TMGMT Translator Smartling 8
Test Smartling context debugger: show context.
File
- src/
Tests/ SmartlingTest.php, line 316  - Contains \Drupal\tmgmt_smartling\Tests\SmartlingTest.
 
Class
- SmartlingTest
 - Basic tests for the Smartling translator.
 
Namespace
Drupal\tmgmt_smartling\TestsCode
public function testSmartlingContextDebuggerShowContext() {
  if (!empty($this->smartlingPluginProviderSettings)) {
    global $base_url;
    $this
      ->drupalPostForm('admin/tmgmt/smartling-context-debug', [
      'do_direct_output' => TRUE,
      'url' => $base_url . '/node/' . $this->testNodeId,
    ], t('Test context'));
    $this
      ->assertText($this->testNodeTitle);
    $this
      ->assertText($this->testNodeBody);
    $this
      ->drupalGet('admin/reports/dblog');
  }
  else {
    $this
      ->fail("Smartling settings file for simpletests not found.");
  }
}