Skip to content

Commit 50226f7

Browse files
authored
Add Missing Search Tests (rappasoft#2152)
1 parent 16a3590 commit 50226f7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/Unit/Traits/Configuration/SearchConfigurationTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ public function test_cant_set_search_debounce_with_other_search_modifiers(): voi
7474
{
7575
$this->expectException(DataTableConfigurationException::class);
7676

77-
$this->basicTable->setSearchDebounce(1000);
7877
$this->basicTable->setSearchDefer();
78+
$this->basicTable->setSearchDebounce(1000);
7979
}
8080

8181
public function test_can_set_search_defer(): void
@@ -92,8 +92,8 @@ public function test_cant_set_search_defer_with_other_search_modifiers(): void
9292
{
9393
$this->expectException(DataTableConfigurationException::class);
9494

95-
$this->basicTable->setSearchDefer();
9695
$this->basicTable->setSearchDebounce(1000);
96+
$this->basicTable->setSearchDefer();
9797
}
9898

9999
public function test_can_set_search_lazy(): void
@@ -110,8 +110,8 @@ public function test_cant_set_search_lazy_with_other_search_modifiers(): void
110110
{
111111
$this->expectException(DataTableConfigurationException::class);
112112

113-
$this->basicTable->setSearchLazy();
114113
$this->basicTable->setSearchDebounce(1000);
114+
$this->basicTable->setSearchLazy();
115115
}
116116

117117
public function test_can_set_search_live(): void
@@ -128,8 +128,8 @@ public function test_cant_set_search_live_with_other_search_modifiers(): void
128128
{
129129
$this->expectException(DataTableConfigurationException::class);
130130

131-
$this->basicTable->setSearchLive();
132131
$this->basicTable->setSearchDebounce(1000);
132+
$this->basicTable->setSearchLive();
133133
}
134134

135135
public function test_can_set_search_blur(): void
@@ -146,8 +146,8 @@ public function test_cant_set_search_blur_with_other_search_modifiers(): void
146146
{
147147
$this->expectException(DataTableConfigurationException::class);
148148

149-
$this->basicTable->setSearchBlur();
150149
$this->basicTable->setSearchDefer();
150+
$this->basicTable->setSearchBlur();
151151
}
152152

153153
public function test_can_set_search_throttle(): void
@@ -165,8 +165,8 @@ public function test_cant_set_search_throttle_with_other_search_modifiers(): voi
165165
{
166166
$this->expectException(DataTableConfigurationException::class);
167167

168-
$this->basicTable->setSearchThrottle(1000);
169168
$this->basicTable->setSearchDefer();
169+
$this->basicTable->setSearchThrottle(1000);
170170
}
171171

172172
public function test_can_set_search_placeholder(): void

0 commit comments

Comments
 (0)