You are here

public function SocialDrupalContext::iSearchIndexForTerm in Open Social 10.2.x

Same name and namespace in other branches
  1. 8.9 tests/behat/features/bootstrap/SocialDrupalContext.php \Drupal\social\Behat\SocialDrupalContext::iSearchIndexForTerm()
  2. 8.5 tests/behat/features/bootstrap/SocialDrupalContext.php \Drupal\social\Behat\SocialDrupalContext::iSearchIndexForTerm()
  3. 8.6 tests/behat/features/bootstrap/SocialDrupalContext.php \Drupal\social\Behat\SocialDrupalContext::iSearchIndexForTerm()
  4. 8.7 tests/behat/features/bootstrap/SocialDrupalContext.php \Drupal\social\Behat\SocialDrupalContext::iSearchIndexForTerm()
  5. 8.8 tests/behat/features/bootstrap/SocialDrupalContext.php \Drupal\social\Behat\SocialDrupalContext::iSearchIndexForTerm()
  6. 10.3.x tests/behat/features/bootstrap/SocialDrupalContext.php \Drupal\social\Behat\SocialDrupalContext::iSearchIndexForTerm()
  7. 10.0.x tests/behat/features/bootstrap/SocialDrupalContext.php \Drupal\social\Behat\SocialDrupalContext::iSearchIndexForTerm()
  8. 10.1.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 401

Class

SocialDrupalContext
Provides pre-built step definitions for interacting with Open Social.

Namespace

Drupal\social\Behat

Code

public function iSearchIndexForTerm($index, $term) {
  $this
    ->getSession()
    ->visit($this
    ->locatePath('/search/' . $index . '/' . urlencode($term)));
}