Code Monkey home page Code Monkey logo

Comments (3)

zpottie avatar zpottie commented on August 14, 2024

Thanks @XTRage - I see what you mean about the table names - will push a fix for that.

Not sure what you mean with the last sentence though? Where am I printing output in testcases? Is that not Moodle/PHPUnit doing so? Currently, the plugin doesn't have automated tests included with the plugin (except TravisCI) and 'provider_testcase::test_metadata_provider' is executed by core Moodle from /moodle/privacy/tests/provider_test.php:115 (Moodle v3.9)

from moodle-block_advnotifications.

XTRage avatar XTRage commented on August 14, 2024

Thank you for your quick reply.

About the other thing:

There was 1 risky test:

  1. provider_testcase::test_component_understands_deleted_users with data set "block_advnotifications" ('block_advnotifications', 'block_advnotifications\privac...ovider')
    This test printed output: Getting contexts for userid...
    Done 'Getting contexts for userid...'

It is just about printing some output during the test (you are doing it with mtrace) and PHPUnit marking those as "risky" tests with its out-of-the-box Moodle configuration/distribution.
But as I said, just nitpicking, PHPUnit shuts up when "beStrictAboutOutputDuringTests" is set to false.

from moodle-block_advnotifications.

zpottie avatar zpottie commented on August 14, 2024

Thanks again for the report and detailed info, @XTRage! Thanks to Open Source magic, @gustavorivas96 has addressed the above issues in the latest pull request. 👌

I'll push the fixes to the Moodle Plugins directory as soon as I can.

from moodle-block_advnotifications.

Related Issues (20)

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.