You are here

public function FeatureContext::openGroupStreamPage in Open Social 10.3.x

Same name and namespace in other branches
  1. 8.9 tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::openGroupStreamPage()
  2. 8.3 tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::openGroupStreamPage()
  3. 8.4 tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::openGroupStreamPage()
  4. 8.5 tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::openGroupStreamPage()
  5. 8.6 tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::openGroupStreamPage()
  6. 8.7 tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::openGroupStreamPage()
  7. 8.8 tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::openGroupStreamPage()
  8. 10.0.x tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::openGroupStreamPage()
  9. 10.1.x tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::openGroupStreamPage()
  10. 10.2.x tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::openGroupStreamPage()

Opens group stream page.

@Given /^(?:|I )am on the stream of group "(?P<group_title>[^"]+)"$/ @When /^(?:|I )go to the stream of group "(?P<group_title>[^"]+)"$/

File

tests/behat/features/bootstrap/FeatureContext.php, line 613

Class

FeatureContext
Defines application features from the specific context.

Namespace

Drupal\social\Behat

Code

public function openGroupStreamPage($group_title) {
  $group_id = $this
    ->getGroupIdFromTitle($group_title);
  $page = '/group/' . $group_id . '/stream';
  $this
    ->visitPath($page);
}