Skip to content

Commit

Permalink
Merge pull request #344 from localgovdrupal/fix/1.x/update-route-in-p…
Browse files Browse the repository at this point in the history
…ermissions-test

Fix routes to localgov_alert_banner_types in permissions test
  • Loading branch information
andybroomfield authored Jul 2, 2024
2 parents ad5225a + 60ce1d4 commit 6f95d61
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/src/Functional/PermissionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function testAlertBannerUserAccess() {
$this->assertSession()->statusCodeEquals(Response::HTTP_FORBIDDEN);

// Check that anonymous user cannot access the alert banner types.
$this->drupalGet('admin/structure/alert-banner-types');
$this->drupalGet('admin/structure/localgov_alert_banner_types');
$this->assertSession()->statusCodeEquals(Response::HTTP_FORBIDDEN);

$normalAdminUser = $this->createUser(['access administration pages']);
Expand Down Expand Up @@ -146,7 +146,7 @@ public function testAlertBannerUserAccess() {
$this->assertSession()->statusCodeEquals(Response::HTTP_FORBIDDEN);

// Check that authenticated user cannot access the alert banner types.
$this->drupalGet('admin/structure/alert-banner-types');
$this->drupalGet('admin/structure/localgov_alert_banner_types');
$this->assertSession()->statusCodeEquals(Response::HTTP_FORBIDDEN);

$this->drupalLogout();
Expand Down Expand Up @@ -183,7 +183,7 @@ public function testAlertBannerUserAccess() {
$this->assertSession()->statusCodeEquals(Response::HTTP_OK);

// Check that emergency publisher user cannot access the alert banner types.
$this->drupalGet('admin/structure/alert-banner-types');
$this->drupalGet('admin/structure/localgov_alert_banner_types');
$this->assertSession()->statusCodeEquals(Response::HTTP_FORBIDDEN);

$this->drupalLogout();
Expand Down Expand Up @@ -236,7 +236,7 @@ public function testAlertBannerUserAccess() {
$this->drupalLogin($adminUser);

// Check that the admin user can access the alert banner types.
$this->drupalGet('admin/structure/alert-banner-types');
$this->drupalGet('admin/structure/localgov_alert_banner_types');
$this->assertSession()->statusCodeEquals(Response::HTTP_OK);

// Check user access of the banner itself can be restricted.
Expand Down

0 comments on commit 6f95d61

Please sign in to comment.