protected function LocalTranslatorTestBase::assertTaskItemStatusIcon

Asserts task item status icon.

Parameters

string $row: Identifier for the row.

int $state: The expected state.

File

translators/tmgmt_local/tests/src/Functional/LocalTranslatorTestBase.php, line 79

Class

LocalTranslatorTestBase
Base class for local translator tests.

Namespace

Drupal\Tests\tmgmt_local\Functional

Code

protected function assertTaskItemStatusIcon($row, $state) {
  $result = $this
    ->xpath('//*[@id="edit-items"]/div/div/table/tbody/tr[td//text()[contains(., :row)]]/td[1]/img', [
    ':row' => $row,
  ])[0];
  $this
    ->assertEquals($state, $result
    ->getAttribute('title'));
}