public function SocialDrupalContext::iResetTour in Open Social 8
Same name and namespace in other branches
- 8.2 tests/behat/features/bootstrap/SocialDrupalContext.php \SocialDrupalContext::iResetTour()
@Given I reset tour :tour_id
Parameters
$tour_id:
File
- tests/
behat/ features/ bootstrap/ SocialDrupalContext.php, line 134
Class
- SocialDrupalContext
- Provides pre-built step definitions for interacting with Open Social.
Code
public function iResetTour($tour_id) {
$query = \Drupal::database()
->delete('users_data');
$query
->condition('module', 'social_tour');
$query
->condition('name', 'social-home');
$query
->execute();
}