diff --git a/src/Context/FixtureContext.php b/src/Context/FixtureContext.php index 198da845..cc0eb7cd 100644 --- a/src/Context/FixtureContext.php +++ b/src/Context/FixtureContext.php @@ -973,4 +973,29 @@ public function __destruct() { $this->clearConfigFiles(); } + + /** + * Example: Given the maximum 5 items per page + * + * @Given /^the maximum "([^"]+)" items per page$/ + * @param string $items Max items per page + */ + public function stepCreateMaximumItemsPerPageStep($items): void + { + $config = <<getDestinationConfigFolder($file); + file_put_contents($path, $config); + + $this->activatedConfigFiles[] = $path; + $this->getMainContext()->visit('dev/build?flush'); + } }