protected function LocalTranslatorTestBase::assertTaskItemStatusIcon in Translation Management Tool 8
Asserts task item status icon.
Parameters
string $row: Identifier for the row.
int $state: The expected state.
1 call to LocalTranslatorTestBase::assertTaskItemStatusIcon()
- LocalTranslatorTest::testLocalProgress in translators/
tmgmt_local/ tests/ src/ Functional/ LocalTranslatorTest.php - Tests of the task progress.
File
- translators/
tmgmt_local/ tests/ src/ Functional/ LocalTranslatorTestBase.php, line 79
Class
- LocalTranslatorTestBase
- Base class for local translator tests.
Namespace
Drupal\Tests\tmgmt_local\FunctionalCode
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'));
}