Skip to content

Commit

Permalink
improve coverage of canonical & usage page for Template Whispere enti…
Browse files Browse the repository at this point in the history
…ty admin pages
  • Loading branch information
WengerK committed Feb 21, 2024
1 parent faf2ac3 commit 0b72d1e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/src/Functional/UiPageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public function testCanonicalPage() {
]);
$suggestion->save();

$this->drupalGet('admin/structure/template-whisperer/test/usage');
$this->drupalGet('admin/structure/template-whisperer/test');
$this->assertSession()->statusCodeEquals(200);
}

Expand All @@ -163,6 +163,10 @@ public function testUsagePage() {
]);
$suggestion->save();

// Ensure when not used the usage page still works.
$this->drupalGet('admin/structure/template-whisperer/test/usage');
$this->assertSession()->statusCodeEquals(200);

// Create a Basic Page content type that we will use for testing.
$page = $this->entityTypeManager->getStorage('node')->create([
'type' => 'page',
Expand Down

0 comments on commit 0b72d1e

Please sign in to comment.