danmarsden / moodle-mod_dialogue

Dialogue Module for Moodle
27 stars 36 forks source link

PHPUnit errors #134

Open mazitov-az opened 2 months ago

mazitov-az commented 2 months ago

Hi!

Before installing the plugin, I run tests.

version plugin: 2024050200 release: 2024050200

I launched vendor/bin/phpunit --filter mod_dialogue Result:

Moodle 4.1.11+ (Build: 20240802)
Php: 8.0.30, mariadb: 10.6.15-MariaDB-1:10.6.15+maria~ubu2004, OS: Linux 5.4.0-182-generic x86_64
PHPUnit 9.5.28 by Sebastian Bergmann and contributors.

E.....                                                              6 / 6 (100%)

Time: 00:01.097, Memory: 360.00 MB

There was 1 error:

1) core\externallib_test::test_all_external_info with data set "mod_dialogue_search_users" (stdClass Object (...))
Warning: unexpected database modification, resetting DB state

/moodle/lib/phpunit/classes/util.php:299
/moodle/lib/phpunit/classes/advanced_testcase.php:538
/moodle/lib/phpunit/classes/advanced_testcase.php:136

ERRORS!
Tests: 6, Assertions: 95, Errors: 1.
danmarsden commented 2 months ago

Thanks for the report - that's not showing on the github actions pipelines for the 4.1 branch and it's not tripping when I run that on the main branch either - if you manage to track down what is causing it for you, feel free to submit a PR for review!