You are here

public function FeatureContext::iTranslate in Open Social 8

Same name and namespace in other branches
  1. 8.2 tests/behat/features/bootstrap/FeatureContext.php \FeatureContext::iTranslate()

Translate a string.

@Given /I translate "(?P<source>[^"]+)" to "(?P<translation>[^"]+)" for "(?P<langcode>[^"]+)"$/

File

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

Class

FeatureContext
Defines application features from the specific context.

Code

public function iTranslate($source, $translation, $langcode) {
  $this
    ->addTranslation($source, $translation, $langcode);
}