Skip to content

Commit

Permalink
dataset to implement "filter_intrange" test (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
semteacher committed Feb 1, 2025
1 parent d1eb1d9 commit 48efd53
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/base_dataprovider_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,29 @@ public static function wb_table_common_settings_provider(): array {
// Array of tests.
$returnarray = [
// Test name (description).
'filter_intrange' => [
'tablecallback' => 'create_demo_table',
'courses' => $standardcourses,
'expected' => [
'getrowscount' => [
[
'assert' => 16,
],
[
'filterobjects' => '{"fullname":"1,3"}',
'assert' => 6,
],
[
'filterobjects' => '{"fullname":"3,5"}',
'assert' => 3,
],
[
'filterobjects' => '{"fullname":"9,11"}',
'assert' => 2,
],
],
],
],
'filter_hierarchicalfilter' => [
'tablecallback' => 'create_demo2_table',
'courses' => $standardcourses,
Expand Down

0 comments on commit 48efd53

Please sign in to comment.