public function SocialDrupalContext::iSearchIndexForTerm in Open Social 8.9
Same name and namespace in other branches
- 8.5 tests/behat/features/bootstrap/SocialDrupalContext.php \Drupal\social\Behat\SocialDrupalContext::iSearchIndexForTerm()
- 8.6 tests/behat/features/bootstrap/SocialDrupalContext.php \Drupal\social\Behat\SocialDrupalContext::iSearchIndexForTerm()
- 8.7 tests/behat/features/bootstrap/SocialDrupalContext.php \Drupal\social\Behat\SocialDrupalContext::iSearchIndexForTerm()
- 8.8 tests/behat/features/bootstrap/SocialDrupalContext.php \Drupal\social\Behat\SocialDrupalContext::iSearchIndexForTerm()
- 10.3.x tests/behat/features/bootstrap/SocialDrupalContext.php \Drupal\social\Behat\SocialDrupalContext::iSearchIndexForTerm()
- 10.0.x tests/behat/features/bootstrap/SocialDrupalContext.php \Drupal\social\Behat\SocialDrupalContext::iSearchIndexForTerm()
- 10.1.x tests/behat/features/bootstrap/SocialDrupalContext.php \Drupal\social\Behat\SocialDrupalContext::iSearchIndexForTerm()
- 10.2.x tests/behat/features/bootstrap/SocialDrupalContext.php \Drupal\social\Behat\SocialDrupalContext::iSearchIndexForTerm()
I search :index for :term
@When /^(?:|I )search (all|users|groups|content) for "([^"]*)"/
File
- tests/
behat/ features/ bootstrap/ SocialDrupalContext.php, line 314
Class
- SocialDrupalContext
- Provides pre-built step definitions for interacting with Open Social.
Namespace
Drupal\social\BehatCode
public function iSearchIndexForTerm($index, $term) {
$this
->getSession()
->visit($this
->locatePath('/search/' . $index . '/' . urlencode($term)));
}