public function AmpTestBase::nodeUrl in Accelerated Mobile Pages (AMP) 8.3
The url of the test node.
3 calls to AmpTestBase::nodeUrl()
- AmpCSSTest::testCss in tests/
src/ Functional/ AmpCSSTest.php - Test the CSS gets correctly rendered.
- AmpFormatterTestBase::testFormatter in tests/
src/ Functional/ AmpFormatterTestBase.php - Test that the AMP formatter works.
- AmpViewModeTest::testAmpViewMode in tests/
src/ Functional/ AmpViewModeTest.php - Test the AMP view mode is viewable and contains basic metadata.
File
- tests/
src/ Functional/ AmpTestBase.php, line 188
Class
- AmpTestBase
- Base AMP testing setup.
Namespace
Drupal\Tests\amp\FunctionalCode
public function nodeUrl() {
return Url::fromRoute('entity.node.canonical', [
'node' => $this->node
->id(),
], [
'absolute' => TRUE,
])
->toString();
}