diff --git a/CHANGELOG.md b/CHANGELOG.md index f2ca8866c..5581f1afe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ All notable changes to `laravel-livewire-tables` will be documented in this file +## [Unreleased] - 3.x - Missing pagination tests +- Add missing pagination tests + ## [Unreleased] - 3.x - Beta Fixes (beta-1) - Removal of setSearchLazy - Fix for setSearchDebounce diff --git a/tests/Traits/Helpers/PaginationHelpersTest.php b/tests/Traits/Helpers/PaginationHelpersTest.php index 52996c976..c93c1bc12 100644 --- a/tests/Traits/Helpers/PaginationHelpersTest.php +++ b/tests/Traits/Helpers/PaginationHelpersTest.php @@ -87,4 +87,18 @@ public function can_check_and_set_pagination_method(): void $this->assertTrue($this->basicTable->isPaginationMethod('standard')); } + + /** @test */ + public function can_check_per_page_displayed_item_count(): void + { + $this->assertSame(5, $this->basicTable->getPerPageDisplayedItemCount()); + + } + + /** @test */ + public function can_check_per_page_displayed_items(): void + { + $this->assertSame([1, 2, 3, 4, 5], $this->basicTable->getPerPageDisplayedItemIds()); + + } }