protected function SlickTestTrait::verifyPages in Slick Carousel 8.2
Same name and namespace in other branches
- 8 tests/src/Traits/SlickTestTrait.php \Drupal\Tests\slick\Traits\SlickTestTrait::verifyPages()
Verifies the logged in user has access to the various pages.
Parameters
array $pages: The array of pages we want to test.
int $response: (optional) An HTTP response code. Defaults to 200.
File
- tests/
src/ Traits/ SlickTestTrait.php, line 18
Class
- SlickTestTrait
- A Trait common for Slick tests.
Namespace
Drupal\Tests\slick\TraitsCode
protected function verifyPages(array $pages = [], $response = 200) {
foreach ($pages as $page) {
$this
->drupalGet($page);
$this
->assertSession()
->statusCodeEquals($response);
}
}