PHP Class Knp\Bundle\KnpBundlesBundle\Features\Context\FeatureContext

Inheritance: extends Behat\BehatBundle\Context\MinkContext
Afficher le fichier Open project: KnpLabs/KnpBundles

Méthodes publiques

Méthode Description
__construct ( $parameters )
assertBundlePage ( $ownerName, $name )
assertPageContainsTextsInOrder ( Behat\Gherkin\Node\TableNode $table ) Checks, that page contains specified texts in order.
assertResponseShouldContainJson ( Behat\Gherkin\Node\PyStringNode $jsonString )
assertThereIsBundleRowWithFollowingTexts ( Behat\Gherkin\Node\TableNode $table )
assertThereIsElementContainingTexts ( $element, Behat\Gherkin\Node\TableNode $table )
iAmAtHomepage ( )
iAmLoggedInAs ( $username )
iSendARequest ( $url )
iShouldNotSeeRecommendButton ( )
iShouldSeeAtomEntry ( $entryId )
iShouldSeeOwner ( $ownerName )
iShouldSeeRecommendButton ( )
iShouldSeeThatIsManagedByDeveloper ( $bundleName )
organizationHasFollowingMembers ( $orgName, Behat\Gherkin\Node\TableNode $table )
printLastResponseOnError ( Behat\Behat\Event\ScenarioEvent $scenarioEvent )
responseIsSuccessful ( )
searchFor ( $text )
setKernel ( Symfony\Component\HttpKernel\KernelInterface $kernel ) Sets Kernel instance.
theBundlesHaveFollowingKeywords ( Behat\Gherkin\Node\TableNode $table )
theSiteHasFollowingBundles ( Behat\Gherkin\Node\TableNode $table )
theSiteHasFollowingOrganizations ( Behat\Gherkin\Node\TableNode $table )
theSiteHasFollowingUsers ( Behat\Gherkin\Node\TableNode $table )

Méthodes protégées

Méthode Description
getContainer ( ) : Symfony\Component\DependencyInjection\ContainerInterface gets container from kernel
getEntityManager ( ) : EntityManager Returns entity manager
getRouter ( ) : Router Returns router service
replacePlaceHolder ( string $string ) : string
setPlaceHolder ( string $key, string $value )

Private Methods

Méthode Description
recursiveArrayKeysCheck ( array $array1, array $array2 )
setPrivateProperty ( mixed $object, string $propertyName, mixed $value ) : null

Method Details

__construct() public méthode

public __construct ( $parameters )

assertBundlePage() public méthode

public assertBundlePage ( $ownerName, $name )

assertPageContainsTextsInOrder() public méthode

Checks, that page contains specified texts in order.
public assertPageContainsTextsInOrder ( Behat\Gherkin\Node\TableNode $table )
$table Behat\Gherkin\Node\TableNode

assertResponseShouldContainJson() public méthode

public assertResponseShouldContainJson ( Behat\Gherkin\Node\PyStringNode $jsonString )
$jsonString Behat\Gherkin\Node\PyStringNode

assertThereIsBundleRowWithFollowingTexts() public méthode

public assertThereIsBundleRowWithFollowingTexts ( Behat\Gherkin\Node\TableNode $table )
$table Behat\Gherkin\Node\TableNode

assertThereIsElementContainingTexts() public méthode

public assertThereIsElementContainingTexts ( $element, Behat\Gherkin\Node\TableNode $table )
$table Behat\Gherkin\Node\TableNode

getContainer() protected méthode

gets container from kernel
protected getContainer ( ) : Symfony\Component\DependencyInjection\ContainerInterface
Résultat Symfony\Component\DependencyInjection\ContainerInterface

getEntityManager() protected méthode

Returns entity manager
protected getEntityManager ( ) : EntityManager
Résultat Doctrine\ORM\EntityManager

getRouter() protected méthode

Returns router service
protected getRouter ( ) : Router
Résultat Symfony\Bundle\FrameworkBundle\Routing\Router

iAmAtHomepage() public méthode

public iAmAtHomepage ( )

iAmLoggedInAs() public méthode

public iAmLoggedInAs ( $username )

iSendARequest() public méthode

public iSendARequest ( $url )

iShouldNotSeeRecommendButton() public méthode

iShouldSeeAtomEntry() public méthode

public iShouldSeeAtomEntry ( $entryId )

iShouldSeeOwner() public méthode

public iShouldSeeOwner ( $ownerName )

iShouldSeeRecommendButton() public méthode

iShouldSeeThatIsManagedByDeveloper() public méthode

public iShouldSeeThatIsManagedByDeveloper ( $bundleName )

organizationHasFollowingMembers() public méthode

public organizationHasFollowingMembers ( $orgName, Behat\Gherkin\Node\TableNode $table )
$table Behat\Gherkin\Node\TableNode

printLastResponseOnError() public méthode

public printLastResponseOnError ( Behat\Behat\Event\ScenarioEvent $scenarioEvent )
$scenarioEvent Behat\Behat\Event\ScenarioEvent

replacePlaceHolder() protected méthode

protected replacePlaceHolder ( string $string ) : string
$string string
Résultat string

responseIsSuccessful() public méthode

searchFor() public méthode

public searchFor ( $text )

setKernel() public méthode

Sets Kernel instance.
public setKernel ( Symfony\Component\HttpKernel\KernelInterface $kernel )
$kernel Symfony\Component\HttpKernel\KernelInterface HttpKernel instance

setPlaceHolder() protected méthode

protected setPlaceHolder ( string $key, string $value )
$key string
$value string

theBundlesHaveFollowingKeywords() public méthode

public theBundlesHaveFollowingKeywords ( Behat\Gherkin\Node\TableNode $table )
$table Behat\Gherkin\Node\TableNode

theSiteHasFollowingBundles() public méthode

public theSiteHasFollowingBundles ( Behat\Gherkin\Node\TableNode $table )
$table Behat\Gherkin\Node\TableNode

theSiteHasFollowingOrganizations() public méthode

public theSiteHasFollowingOrganizations ( Behat\Gherkin\Node\TableNode $table )
$table Behat\Gherkin\Node\TableNode

theSiteHasFollowingUsers() public méthode

public theSiteHasFollowingUsers ( Behat\Gherkin\Node\TableNode $table )
$table Behat\Gherkin\Node\TableNode