protected function RenderElementTypesTest::assertNoSourceAction in Lingotek Translation 4.0.x
Same name and namespace in other branches
- 3.8.x tests/src/Functional/Render/Element/RenderElementTypesTest.php \Drupal\Tests\lingotek\Functional\Render\Element\RenderElementTypesTest::assertNoSourceAction()
1 call to RenderElementTypesTest::assertNoSourceAction()
- RenderElementTypesTest::testLingotekSourceStatus in tests/
src/ Functional/ Render/ Element/ RenderElementTypesTest.php - Tests #type 'lingotek_source_status'.
File
- tests/
src/ Functional/ Render/ Element/ RenderElementTypesTest.php, line 521
Class
- RenderElementTypesTest
- Tests the markup of lingotek render element types passed to \Drupal::service('renderer')->render().
Namespace
Drupal\Tests\lingotek\Functional\Render\ElementCode
protected function assertNoSourceAction($text, $url) {
$link = $this
->xpath('//ul[contains(@class,lingotek-source-actions)]//li//a[@href="' . $url . '" and text()="' . $text . '"]');
$this
->assertCount(0, $link, 'Action exists.');
}