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

Inheritance: extends Behat\BehatBundle\Context\MinkContext
Datei anzeigen Open project: KnpLabs/KnpBundles

Public Methods

Method 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 )

Protected Methods

Method 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

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

Method Details

__construct() public method

public __construct ( $parameters )

assertBundlePage() public method

public assertBundlePage ( $ownerName, $name )

assertPageContainsTextsInOrder() public method

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

assertResponseShouldContainJson() public method

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

assertThereIsBundleRowWithFollowingTexts() public method

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

assertThereIsElementContainingTexts() public method

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

getContainer() protected method

gets container from kernel
protected getContainer ( ) : Symfony\Component\DependencyInjection\ContainerInterface
return Symfony\Component\DependencyInjection\ContainerInterface

getEntityManager() protected method

Returns entity manager
protected getEntityManager ( ) : EntityManager
return Doctrine\ORM\EntityManager

getRouter() protected method

Returns router service
protected getRouter ( ) : Router
return Symfony\Bundle\FrameworkBundle\Routing\Router

iAmAtHomepage() public method

public iAmAtHomepage ( )

iAmLoggedInAs() public method

public iAmLoggedInAs ( $username )

iSendARequest() public method

public iSendARequest ( $url )

iShouldNotSeeRecommendButton() public method

iShouldSeeAtomEntry() public method

public iShouldSeeAtomEntry ( $entryId )

iShouldSeeOwner() public method

public iShouldSeeOwner ( $ownerName )

iShouldSeeRecommendButton() public method

iShouldSeeThatIsManagedByDeveloper() public method

public iShouldSeeThatIsManagedByDeveloper ( $bundleName )

organizationHasFollowingMembers() public method

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

printLastResponseOnError() public method

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

replacePlaceHolder() protected method

protected replacePlaceHolder ( string $string ) : string
$string string
return string

responseIsSuccessful() public method

searchFor() public method

public searchFor ( $text )

setKernel() public method

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

setPlaceHolder() protected method

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

theBundlesHaveFollowingKeywords() public method

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

theSiteHasFollowingBundles() public method

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

theSiteHasFollowingOrganizations() public method

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

theSiteHasFollowingUsers() public method

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