src/Sylius/Bundle/WebBundle/Behat/WebContext.php
/**
     * @Then I should browse the store in :locale
     */
@Then I should browse the store in :locale
@Then I should browse the store in : locale
public function iShouldBrowseTheStoreInLocale($name)
    {
        switch ($name) {
            case 'English':
                $text = 'Welcome to Sylius';
            break;
            case 'Polish':
                $text = 'Witaj w Sylius';
            break;
            case 'German':
                $text = 'Englisch';
            break;
        }
        $this->assertSession()->pageTextContains($text);
    }
public function iShouldBrowseTheStoreInLocale ( $ name ) { switch ( $ name ) { case 'English' : $ text = 'Welcome to Sylius' ; break ; case 'Polish' : $ text = 'Witaj w Sylius' ; break ; case 'German' : $ text = 'Englisch' ; break ; } $ this -> assertSession ( ) -> pageTextContains ( $ text ) ; }
@Then I should browse the store in :locale
@Then I should browse the store in : locale