You are here

public function LocalTasksTests::testTranslatorLocalTasksNoSource in Translation Management Tool 8

Tests UI for translator local tasks without sources.

File

tests/src/Functional/LocalTasksTests.php, line 72

Class

LocalTasksTests
Verifies basic functionality of the local tasks.

Namespace

Drupal\Tests\tmgmt\Functional

Code

public function testTranslatorLocalTasksNoSource() {

  // Login as administrator to view Cart,Jobs and Sources.
  $this
    ->loginAsAdmin(array(
    'access administration pages',
  ));
  $this
    ->drupalGet('admin');
  $this
    ->clickLink(t('Translation'));
  $this
    ->clickLink(t('Sources'));
  $this
    ->assertText(t('No sources enabled.'));
}