Skip to content

Commit

Permalink
Some extra testing for peace of mind
Browse files Browse the repository at this point in the history
  • Loading branch information
afonic committed Feb 28, 2024
1 parent 61116c2 commit ecb295f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/Feature/LfCheckboxFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,8 @@ public function it_calculates_the_count_for_each_entry()
->dispatch('params-updated', ['item_options:is' => 'option1'])
->assertViewHas('statamic_field', function ($statamic_field) {
return $statamic_field['counts'] === ['option1' => 2, 'option2' => 1, 'option3' => 0];
});
})
->assertSeeHtml('<span class="text-gray-500 ml-1">(2)</span>');
}

protected function makeEntry($collection, $slug)
Expand Down
3 changes: 2 additions & 1 deletion tests/Feature/LfRadioFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ public function it_calculates_the_count_for_each_entry()
->dispatch('params-updated', ['item_options:is' => 'option1'])
->assertViewHas('statamic_field', function ($statamic_field) {
return $statamic_field['counts'] === ['option1' => 2, 'option2' => 1, 'option3' => 0];
});
})
->assertSeeHtml('<span class="text-gray-500 ml-1">(2)</span>');

}

Expand Down

0 comments on commit ecb295f

Please sign in to comment.