public function BuildTestBase::assertDrupalVisit in Drupal 9
Same name and namespace in other branches
- 8 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 330
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\\)/');
}