Skip to content

Commit

Permalink
adjust conditions and assertions in test_filter_datepicker() (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
semteacher authored and eynimeni committed Feb 18, 2025
1 parent 0eff75c commit f50abe8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/base_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,6 @@ public function test_filter_datepicker(): void {
null,
null,
'{"enddate":{"Course end date":{">":' . $plusfifftymonth . '}}}'
//'{"enddate":{"Course end date":{">":1772323200}}}'
);
$this->assertEquals(1, $nrofrows);

Expand All @@ -319,10 +318,9 @@ public function test_filter_datepicker(): void {
null,
null,
null,
//'{"enddate":{"Course end date":{"<":' . strtotime('25 Jun 2020') . '}}}'
'{"enddate":{"Course end date":{"<":1593043200}}}'
'{"enddate":{"Course end date":{"<":' . strtotime('1 January 2020') . '}}}'
);
$this->assertEquals(12, $nrofrows);
$this->assertEquals(11, $nrofrows);

$nrofrows = $this->get_rowscount_for_table(
$table,
Expand Down

0 comments on commit f50abe8

Please sign in to comment.