Skip to content

Commit c22b134

Browse files
committed
Add additional tests
1 parent 762bed2 commit c22b134

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

tests/Unit/Traits/Configuration/FilterConfigurationTest.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,17 +86,22 @@ public function test_filters_layout_can_be_set(): void
8686

8787
$this->assertSame('popover', $this->basicTable->getFilterLayout());
8888

89+
$this->basicTable->setFilterLayoutSlideDown();
90+
91+
$this->assertSame('slide-down', $this->basicTable->getFilterLayout());
92+
8993
$this->basicTable->setFilterLayout('popover2');
9094

9195
$this->assertSame('popover', $this->basicTable->getFilterLayout());
9296

93-
$this->basicTable->setFilterLayoutSlideDown();
94-
9597
$this->basicTable->setFilterLayout('slide-down');
9698

99+
$this->assertSame('slide-down', $this->basicTable->getFilterLayout());
100+
97101
$this->basicTable->setFilterLayoutPopover();
98102

99-
$this->basicTable->setFilterLayout('popover');
103+
$this->assertSame('popover', $this->basicTable->getFilterLayout());
104+
100105
}
101106

102107
public function test_filters_layout_popover_default_can_be_set(): void

tests/Unit/Traits/Core/QueryStrings/QueryStringForFiltersTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ public function test_can_disable_filter_query_string_status(): void
2929
parent::$mock->configure();
3030
parent::$mock->boot();
3131
$this->assertSame(true, parent::$mock->getQueryStringStatusForFilter());
32+
$this->assertTrue(parent::$mock->hasQueryStringStatusForFilter());
3233
parent::$mock->setQueryStringForFilterDisabled();
3334
$this->assertSame(false, parent::$mock->getQueryStringStatusForFilter());
35+
$this->assertTrue(parent::$mock->hasQueryStringStatusForFilter());
36+
3437
}
3538

3639
public function test_can_enable_filter_query_string_status(): void

0 commit comments

Comments
 (0)