public function FeatureContext::whenIGenerateAnArticleWithLotsOfTerms in Pantheon Advanced Page Cache 8
@When a generate an article with lots of terms
1 call to FeatureContext::whenIGenerateAnArticleWithLotsOfTerms()
- FeatureContext::thereAreArticleNodesWithAHugeNumberOfTaxonomyTermsEach in tests/
behat/ helper_classes/ Contexts/ FeatureContext.php - @Given there are :numnber_of_nodes article nodes with a huge number of taxonomy terms each
File
- tests/
behat/ helper_classes/ Contexts/ FeatureContext.php, line 157
Class
- FeatureContext
- Define application features from the specific context.
Namespace
PantheonSystems\CDNBehatHelpers\ContextsCode
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);
}