public function FeatureContext::assertFieldHasSiteTitle in Acquia Lift Connector 7
@Then the :field field should contain the site title
Throws
\Exception If the region or element cannot be found or does not have the specified class.
File
- behat-tests/
features/ bootstrap/ FeatureContext.php, line 397
Class
- FeatureContext
- Defines application features from the specific context.
Code
public function assertFieldHasSiteTitle($field) {
// Read the site name dynamically.
$site_name = variable_get('site_name', "Default site name");
$mink_context = $this->contexts['Drupal\\DrupalExtension\\Context\\MinkContext'];
$mink_context
->assertFieldContains($field, $site_name);
}