Skip to content

Commit

Permalink
Add Lazy Search Tests (#2106)
Browse files Browse the repository at this point in the history
  • Loading branch information
lrljoe authored Dec 1, 2024
1 parent 62591bb commit f6ebadc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions tests/Unit/Traits/Configuration/SearchConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,23 +96,23 @@ public function test_cant_set_search_defer_with_other_search_modifiers(): void
$this->basicTable->setSearchDebounce(1000);
}

/*public function test_can_set_search_lazy(): void
public function test_can_set_search_lazy(): void
{
$this->assertFalse($this->basicTable->hasSearchLazy());

$this->basicTable->setSearchLazy();

$this->assertTrue($this->basicTable->hasSearchLazy());
$this->assertSame('.lazy', $this->basicTable->getSearchOptions());
}*/
$this->assertSame('.live.lazy', $this->basicTable->getSearchOptions());
}

/*public function test_cant_set_search_lazy_with_other_search_modifiers(): void
public function test_cant_set_search_lazy_with_other_search_modifiers(): void
{
$this->expectException(DataTableConfigurationException::class);

$this->basicTable->setSearchLazy();
$this->basicTable->setSearchDebounce(1000);
}*/
}

public function test_can_set_search_live(): void
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/Traits/Helpers/SearchHelpersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,14 @@ public function test_can_check_if_search_blur_is_set(): void
$this->assertTrue($this->basicTable->hasSearchBlur());
}

/*public function test_can_check_if_search_lazy_is_set(): void
public function test_can_check_if_search_lazy_is_set(): void
{
$this->assertFalse($this->basicTable->hasSearchLazy());

$this->basicTable->setSearchLazy();

$this->assertTrue($this->basicTable->hasSearchLazy());
}*/
}

public function test_can_check_if_search_throttle_is_set(): void
{
Expand Down

0 comments on commit f6ebadc

Please sign in to comment.