Skip to content

Commit

Permalink
Add unit tests for uncached uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
distantnative committed Jul 24, 2024
1 parent 12b4e4f commit 41c1160
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/Cms/Languages/LanguageRouterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,9 @@ public function testUUIDRoute()
'children' => [
[
'slug' => 'notes',
],
[
'slug' => 'albums',
]
]
],
Expand All @@ -230,5 +233,10 @@ public function testUUIDRoute()

$this->assertSame(302, $response->code());
$this->assertSame('/en/notes', $response->header('Location'));

// not cached
$uuid = $app->page('albums')->uuid();
$response = $language->router()->call('@/page/' . $uuid->id());
$this->assertFalse($response);
}
}

0 comments on commit 41c1160

Please sign in to comment.