public function AmpTestBase::nodeAmpUrl in Accelerated Mobile Pages (AMP) 8.3
The AMP url of the test node.
3 calls to AmpTestBase::nodeAmpUrl()
- 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 195
Class
- AmpTestBase
- Base AMP testing setup.
Namespace
Drupal\Tests\amp\FunctionalCode
public function nodeAmpUrl() {
return Url::fromRoute('entity.node.canonical', [
'node' => $this->node
->id(),
], [
'absolute' => TRUE,
'query' => [
'amp' => NULL,
],
])
->toString();
}