You are here

public function SocialDrupalContext::iWaitForSeconds in Open Social 8.2

Same name and namespace in other branches
  1. 8 tests/behat/features/bootstrap/SocialDrupalContext.php \SocialDrupalContext::iWaitForSeconds()

I wait for (seconds) seconds.

@When /^(?:|I )wait for "([^"]*)" seconds$/

File

tests/behat/features/bootstrap/SocialDrupalContext.php, line 195

Class

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

Code

public function iWaitForSeconds($seconds, $condition = "") {
  $milliseconds = (int) ($seconds * 1000);
  $this
    ->getSession()
    ->wait($milliseconds, $condition);
}