You are here

public function FeatureContext::WhenIGenerateAnArticleWithLotsOfTerms in Pantheon Advanced Page Cache 7

@When a generate a :type node

1 call to FeatureContext::WhenIGenerateAnArticleWithLotsOfTerms()
FeatureContext::thereAreArticleNodesWithAHugeNumberOfTaxonomyTermsEach in tests/behat/features/bootstrap/FeatureContext.php
@Given there are :numnber_of_nodes article nodes with a huge number of taxonomy terms each

File

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

Class

FeatureContext
Define application features from the specific context.

Code

public function WhenIGenerateAnArticleWithLotsOfTerms() {
  $random_node_title = "Random Node Title: " . rand();
  $this->minkContext
    ->visit('node/add/article');
  $this->minkContext
    ->fillField('Title', $random_node_title);
  $this->minkContext
    ->fillField('Tags', $this
    ->generateRandomTaxonomyString());
  $this->minkContext
    ->pressButton('Save');
  $this->minkContext
    ->assertTextVisible($random_node_title);
}