function TemplateProjectTestBase::visit
Visit a URI on the HTTP server.
The concept here is that there could be multiple potential docroots in the workspace, so you can use whichever ones you want.
Parameters
string $request_uri: (optional) The non-host part of the URL. Example: /some/path?foo=bar. Defaults to visiting the homepage.
string $working_dir: (optional) Relative path within the test workspace file system that will be the docroot for the request. Defaults to the workspace directory.
Return value
\Behat\Mink\Mink The Mink object. Perform assertions against this.
Overrides BuildTestBase::visit
4 calls to TemplateProjectTestBase::visit()
- TemplateProjectTestBase::createTestProject in core/
modules/ package_manager/ tests/ src/ Build/ TemplateProjectTestBase.php - Creates a test project from a given template and installs Drupal.
- TemplateProjectTestBase::installModules in core/
modules/ package_manager/ tests/ src/ Build/ TemplateProjectTestBase.php - Installs modules in the UI.
- TemplateProjectTestBase::makePackageManagerTestApiRequest in core/
modules/ package_manager/ tests/ src/ Build/ TemplateProjectTestBase.php - Gets a /package-manager-test-api response.
- TemplateProjectTestBase::visitPackageManagerChangeLog in core/
modules/ package_manager/ tests/ src/ Build/ TemplateProjectTestBase.php - Visits the 'admin/reports/dblog' and selects Package Manager's change log.
File
-
core/
modules/ package_manager/ tests/ src/ Build/ TemplateProjectTestBase.php, line 203
Class
- TemplateProjectTestBase
- Base class for tests which create a test site from a core project template.
Namespace
Drupal\Tests\package_manager\BuildCode
public function visit($request_uri = '/', $working_dir = NULL) {
return parent::visit($request_uri, $working_dir ?: $this->webRoot);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.