function BuildTestBase::assertDrupalVisit
Same name in other branches
- 9 core/tests/Drupal/BuildTests/Framework/BuildTestBase.php \Drupal\BuildTests\Framework\BuildTestBase::assertDrupalVisit()
- 10 core/tests/Drupal/BuildTests/Framework/BuildTestBase.php \Drupal\BuildTests\Framework\BuildTestBase::assertDrupalVisit()
- 11.x core/tests/Drupal/BuildTests/Framework/BuildTestBase.php \Drupal\BuildTests\Framework\BuildTestBase::assertDrupalVisit()
Helper function to assert that the last visit was a Drupal site.
This method asserts that the X-Generator header shows that the site is a Drupal site.
1 call to BuildTestBase::assertDrupalVisit()
- HtRouterTest::testHtRouter in core/
tests/ Drupal/ BuildTests/ Framework/ Tests/ HtRouterTest.php - @covers ::instantiateServer
File
-
core/
tests/ Drupal/ BuildTests/ Framework/ BuildTestBase.php, line 336
Class
- BuildTestBase
- Provides a workspace to test build processes.
Namespace
Drupal\BuildTests\FrameworkCode
public function assertDrupalVisit() {
$this->getMink()
->assertSession()
->responseHeaderMatches('X-Generator', '/Drupal \\d+ \\(https:\\/\\/www.drupal.org\\)/');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.