Giter Club home page Giter Club logo

Comments (5)

marcusgreen avatar marcusgreen commented on July 18, 2024

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.

marcusgreen avatar marcusgreen commented on July 18, 2024

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.

owenherbert avatar owenherbert commented on July 18, 2024

Hi Marcus, thanks for the quick response. I am using PHP 7.4 and Moodle 4.1 on my system.

from moodle-report_advancedgrading.

owenherbert avatar owenherbert commented on July 18, 2024

Looking deeper into this issue the unit tests pass when using PostgreSQL. My system is using MySQL database.

from moodle-report_advancedgrading.

marcusgreen avatar marcusgreen commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.