private function CommentFullViewFiltersFieldsTest::assertTextInRow in Translation Views 8
Checks that text is in specific row.
Parameters
int $row_number: Table row order number.
string $css_class: Part of the css class of required field.
string $text: Text that should be found in the element.
Throws
\Behat\Mink\Exception\ElementTextException
2 calls to CommentFullViewFiltersFieldsTest::assertTextInRow()
- CommentFullViewFiltersFieldsTest::assertTextInRowOrder in tests/
src/ Functional/ CommentFullViewFiltersFieldsTest.php - Cyclic check that text is in specific row.
- CommentFullViewFiltersFieldsTest::testFields in tests/
src/ Functional/ CommentFullViewFiltersFieldsTest.php - Tests that the fields show all required information.
File
- tests/
src/ Functional/ CommentFullViewFiltersFieldsTest.php, line 48
Class
- CommentFullViewFiltersFieldsTest
- Tests for fields, filters and sorting for comment entity.
Namespace
Drupal\Tests\translation_views\FunctionalCode
private function assertTextInRow($row_number, $css_class, $text) {
$this
->assertSession()
->elementTextContains('css', "table > tbody > tr:nth-child({$row_number}) td.views-field-{$css_class}", $text);
}