protected function LocalTranslatorTestBase::assertTaskStatusIcon

Asserts task status icon.

Parameters

int $row: The row of the item you want to check.

string $view: The view where we want to assert.

string $overview: The overview table to check.

int $state: The expected state.

File

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

Class

LocalTranslatorTestBase
Base class for local translator tests.

Namespace

Drupal\Tests\tmgmt_local\Functional

Code

protected function assertTaskStatusIcon($row, $view, $overview, $state) {
  $result = $this
    ->xpath('//*[@id="views-form-tmgmt-local-' . $view . '-' . $overview . '"]/table/tbody/tr[' . $row . ']/td[2]/img')[0];
  $this
    ->assertEquals($state, $result
    ->getAttribute('title'));
}