Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reportbuilder issues #9

Open
mackensen opened this issue Jun 10, 2024 · 0 comments
Open

Reportbuilder issues #9

mackensen opened this issue Jun 10, 2024 · 0 comments
Assignees

Comments

@mackensen
Copy link
Member

1) core_user\reportbuilder\datasource\users_test::test_datasource_non_default_columns
Failed asserting that '<a href="https://www.example.com/moodle/user/profile.php?id=3">Anonymous User</a>' contains "Zoe Lastname1".

/home/runner/work/moodle/moodle/user/tests/reportbuilder/datasource/users_test.php:182
/home/runner/work/moodle/moodle/lib/phpunit/classes/advanced_testcase.php:72

2) core_user\reportbuilder\datasource\users_test::test_datasource_filters with data set "Filter timemodified (no match)" ('user:timemodified', array(3, 1622502000), false)
Failed asserting that an array is empty.

/home/runner/work/moodle/moodle/user/tests/reportbuilder/datasource/users_test.php:518
/home/runner/work/moodle/moodle/lib/phpunit/classes/advanced_testcase.php:72

3) core_reportbuilder\local\aggregation\avg_test::test_column_aggregation
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
     0 => Array (...)
     1 => Array (
-        0 => 'Anonymous'
+        0 => 'Admin'
         1 => '0.0'
     )
     2 => Array (
-        0 => 'Admin'
+        0 => 'Anonymous'
         1 => '0.0'
     )
 )

/home/runner/work/moodle/moodle/reportbuilder/tests/local/aggregation/avg_test.php:72
/home/runner/work/moodle/moodle/lib/phpunit/classes/advanced_testcase.php:72

4) core_reportbuilder\local\aggregation\count_test::test_column_aggregation
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
     0 => Array (...)
     1 => Array (
-        0 => 'Anonymous'
+        0 => 'Admin'
         1 => 1
     )
     2 => Array (
-        0 => 'Admin'
+        0 => 'Anonymous'
         1 => 1
     )
 )

/home/runner/work/moodle/moodle/reportbuilder/tests/local/aggregation/count_test.php:71
/home/runner/work/moodle/moodle/lib/phpunit/classes/advanced_testcase.php:72

5) core_reportbuilder\local\aggregation\countdistinct_test::test_column_aggregation
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
     0 => Array (...)
     1 => Array (
-        0 => 'Anonymous'
+        0 => 'Admin'
         1 => 1
     )
     2 => Array (
-        0 => 'Admin'
+        0 => 'Anonymous'
         1 => 1
     )
 )

/home/runner/work/moodle/moodle/reportbuilder/tests/local/aggregation/countdistinct_test.php:71
/home/runner/work/moodle/moodle/lib/phpunit/classes/advanced_testcase.php:72

6) core_reportbuilder\local\aggregation\groupconcat_test::test_column_aggregation
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
     0 => Array (...)
     1 => Array (
-        0 => 'Anonymous'
+        0 => 'Admin'
         1 => 'User'
     )
     2 => Array (
-        0 => 'Admin'
+        0 => 'Anonymous'
         1 => 'User'
     )
 )

/home/runner/work/moodle/moodle/reportbuilder/tests/local/aggregation/groupconcat_test.php:76
/home/runner/work/moodle/moodle/lib/phpunit/classes/advanced_testcase.php:72

7) core_reportbuilder\local\aggregation\groupconcatdistinct_test::test_column_aggregation
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
     0 => Array (...)
     1 => Array (
-        0 => 'Anonymous'
+        0 => 'Admin'
         1 => 'User'
     )
     2 => Array (
-        0 => 'Admin'
+        0 => 'Anonymous'
         1 => 'User'
     )
 )

/home/runner/work/moodle/moodle/reportbuilder/tests/local/aggregation/groupconcatdistinct_test.php:86
/home/runner/work/moodle/moodle/lib/phpunit/classes/advanced_testcase.php:72

8) core_reportbuilder\local\aggregation\max_test::test_column_aggregation
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
     0 => Array (...)
     1 => Array (
-        0 => 'Anonymous'
+        0 => 'Admin'
         1 => 'No'
     )
     2 => Array (
-        0 => 'Admin'
+        0 => 'Anonymous'
         1 => 'No'
     )
 )

/home/runner/work/moodle/moodle/reportbuilder/tests/local/aggregation/max_test.php:70
/home/runner/work/moodle/moodle/lib/phpunit/classes/advanced_testcase.php:72

9) core_reportbuilder\local\aggregation\min_test::test_column_aggregation
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
     0 => Array (...)
     1 => Array (
-        0 => 'Anonymous'
+        0 => 'Admin'
         1 => 'No'
     )
     2 => Array (
-        0 => 'Admin'
+        0 => 'Anonymous'
         1 => 'No'
     )
 )

/home/runner/work/moodle/moodle/reportbuilder/tests/local/aggregation/min_test.php:70
/home/runner/work/moodle/moodle/lib/phpunit/classes/advanced_testcase.php:72

10) core_reportbuilder\local\aggregation\percent_test::test_column_aggregation
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
     0 => Array (...)
     1 => Array (
-        0 => 'Anonymous'
+        0 => 'Admin'
         1 => '0.0%'
     )
     2 => Array (
-        0 => 'Admin'
+        0 => 'Anonymous'
         1 => '0.0%'
     )
 )

/home/runner/work/moodle/moodle/reportbuilder/tests/local/aggregation/percent_test.php:70
/home/runner/work/moodle/moodle/lib/phpunit/classes/advanced_testcase.php:72

11) core_reportbuilder\local\aggregation\sum_test::test_column_aggregation
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
     0 => Array (...)
     1 => Array (
-        0 => 'Anonymous'
-        1 => 0
+        0 => 'Admin'
+        1 => '0'
     )
     2 => Array (
-        0 => 'Admin'
-        1 => 0
+        0 => 'Anonymous'
+        1 => '0'
     )
 )

/home/runner/work/moodle/moodle/reportbuilder/tests/local/aggregation/sum_test.php:73
/home/runner/work/moodle/moodle/lib/phpunit/classes/advanced_testcase.php:72

12) core_admin\reportbuilder\local\filters\courserole_test::test_get_sql_filter with data set "Empty filter" ('', '', '', array('admin', 'guest', 'user1', 'user2', 'user3', 'user4'))
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
     0 => 'admin'
-    1 => 'guest'
-    2 => 'user1'
-    3 => 'user2'
-    4 => 'user3'
-    5 => 'user4'
+    1 => 'anonymous_user'
+    2 => 'guest'
+    3 => 'user1'
+    4 => 'user2'
+    5 => 'user3'
+    6 => 'user4'
 )

/home/runner/work/moodle/moodle/admin/tests/reportbuilder/local/filters/courserole_test.php:112
/home/runner/work/moodle/moodle/lib/phpunit/classes/advanced_testcase.php:72
@mackensen mackensen self-assigned this Jun 10, 2024
mackensen added a commit that referenced this issue Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant