We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c96fd5 commit 0bacc5cCopy full SHA for 0bacc5c
1 file changed
tests/Routes/PoliciesControllerTest.php
@@ -31,6 +31,9 @@ public function testMissingPoliciesReturnsOnlyLatestCurrentPolicyPerType(): void
31
$user = User::factory()->create();
32
$now = CarbonImmutable::now();
33
34
+ // Future policy (should be ignored because it is not active yet)
35
+ $this->createPolicy('terms-of-use', $now->addDays(10), 'terms-of-use/version-future.vue');
36
+
37
$olderTerms = $this->createPolicy('terms-of-use', $now->subDays(10), 'terms-of-use/version-1.vue');
38
$latestTerms = $this->createPolicy('terms-of-use', $now->subDays(1), 'terms-of-use/version-2.vue');
39
$this->createPolicy('terms-of-use', $now->addDays(1), 'terms-of-use/version-3.vue');
0 commit comments