protected function LocalTranslatorTestBase::assertTaskStatusIcon in Translation Management Tool 8
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.
1 call to LocalTranslatorTestBase::assertTaskStatusIcon()
- 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 66
Class
- LocalTranslatorTestBase
- Base class for local translator tests.
Namespace
Drupal\Tests\tmgmt_local\FunctionalCode
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'));
}