Skip to content

Commit

Permalink
hit a route with the cache middleware in the test
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga committed Jan 26, 2024
1 parent bc378c8 commit b2da6d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/StaticCaching/NocacheTagsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ public function it_can_keep_nested_nocache_tags_dynamic_inside_cache_tags()
/** @test */
public function it_only_adds_appropriate_fields_of_context_to_session()
{
$this->get('/');

$expectedFields = [
'foo', // By adding @auto it will be picked up from the template.
'baz', // Explicitly selected
Expand All @@ -132,6 +134,8 @@ public function it_only_adds_appropriate_fields_of_context_to_session()
/** @test */
public function it_only_adds_explicitly_defined_fields_of_context_to_session()
{
$this->get('/');

// We will not add `bar` to the session because it is not explicitly defined.
// We will not add `nope` to the session because it is not in the context.
$expectedFields = ['foo', 'baz'];
Expand Down

0 comments on commit b2da6d8

Please sign in to comment.