Comments (5)
It looks to me like it refers to
$this->assertContains($gradeduser, $enrollednames);
https://github.com/marcusgreen/moodle-report_advancedgrading/blob/903ee3807d00fe7bca8b5aa9451bc2dbecf429d4/tests/locallib_test.php#L235C1-L235C60
You might find out more by adding a var_dump($gradeduser); and var_dump($enrollednames)
I suspect from memory I was expecting the array to contain just 'admin' and the magic of phpunit adds a bunch of stuff on to ensure it will cope with all manner of names. But that is only a guess.
from moodle-report_advancedgrading.
For a bit of background the unit tests and a whole bunch of other stuff runs whenever I make a commit and 3 weeks ago the unit tests ran without error. Could you provide more information on your setup, e.g. PHP version Moodle version etc. When it ran three weeks ago it was PHP 8.1 against Moodle version 4.3.
from moodle-report_advancedgrading.
Hi Marcus, thanks for the quick response. I am using PHP 7.4 and Moodle 4.1 on my system.
from moodle-report_advancedgrading.
Looking deeper into this issue the unit tests pass when using PostgreSQL. My system is using MySQL database.
from moodle-report_advancedgrading.
I am closing this as the tests run against MySQL and MySQL in the ci (which runs each time I push any code). Feel free to re-open if it is still troubling you. Thanks for the feedback.
Marcus
from moodle-report_advancedgrading.
Related Issues (19)
- Report should spread out like the gradebook report
- Report in course context with course secondary navigation NOT module navigation links HOT 3
- 'Graded by' report issue HOT 11
- Direct users to add a grading form if it doesn't exist
- Rubric breakdown report tab is visible to students HOT 8
- Exception - count(): Argument #1 ($value) must be of type Countable|array, null given HOT 7
- Support for Ranged Rubrics HOT 2
- Bug: User group data is not exported HOT 8
- Only active grading instances should be shown HOT 3
- Site level reporting of Advanced Grading HOT 4
- headers in grading report occasionally do not match the data itself HOT 1
- Dowload report fails when images contained in assignment feedback. HOT 3
- The plugin don't apply the filters everywhere HOT 3
- A strings isn't localized HOT 1
- Javascript ordering and pagination isn't localized HOT 4
- Issue with number of submissions HOT 20
- Suggestion: a profile field should be selected by default HOT 1
- Problem loading datatables JS breaks javascript for site HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moodle-report_advancedgrading.