public function CommentFullViewFiltersFieldsTest::testFields in Translation Views 8
Tests that the fields show all required information.
File
- tests/
src/ Functional/ CommentFullViewFiltersFieldsTest.php, line 227
Class
- CommentFullViewFiltersFieldsTest
- Tests for fields, filters and sorting for comment entity.
Namespace
Drupal\Tests\translation_views\FunctionalCode
public function testFields() {
$this
->drupalGet($this->viewPath);
$this
->assertSession()
->statusCodeEquals(200);
$this
->assertTextInRow(1, 'subject', 'node 1 en comment');
$this
->assertTextInRow(1, 'langcode', 'English');
$this
->assertTextInRow(1, 'translation-target-language', 'English');
$this
->assertTextInRow(1, 'translation-default', 'Yes');
$this
->assertTextInRow(1, 'translation-changed', ':');
$this
->assertTextInRow(1, 'translation-count', '0');
$this
->assertTextInRow(1, 'translation-outdated', 'No');
$this
->assertTextInRow(1, 'translation-source', 'Yes');
$this
->assertTextInRow(1, 'translation-status', 'Translated');
$this
->assertTextInRow(1, 'translation-operations', 'Edit');
}