You are here

private function CommentFullViewFiltersFieldsTest::assertTextInRowOrder in Translation Views 8

Cyclic check that text is in specific row.

Parameters

string $css_class: Part of the css class of required field.

array $texts: Array of texts that should be found in the element and rows' order number.

Throws

\Behat\Mink\Exception\ElementTextException

2 calls to CommentFullViewFiltersFieldsTest::assertTextInRowOrder()
CommentFullViewFiltersFieldsTest::testFilters in tests/src/Functional/CommentFullViewFiltersFieldsTest.php
Tests that filters are working correctly.
CommentFullViewFiltersFieldsTest::testSorting in tests/src/Functional/CommentFullViewFiltersFieldsTest.php
Tests columns' sorting.

File

tests/src/Functional/CommentFullViewFiltersFieldsTest.php, line 64

Class

CommentFullViewFiltersFieldsTest
Tests for fields, filters and sorting for comment entity.

Namespace

Drupal\Tests\translation_views\Functional

Code

private function assertTextInRowOrder($css_class, array $texts) {
  foreach ($texts as $id => $text) {
    $this
      ->assertTextInRow($id, $css_class, $text);
  }
}