Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-67619

core_customfield unit tests cause unexpected database modification

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 3.7.3, 3.8, 3.9
    • Unit tests
    • MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
    • master_MDL-67619
    • Hide

      1. Run unit test for core_customfield_testsuite and core_privacy_testsuite test suite in one go: 

      /vendor/bin/phpunit --stop-on-failure --testsuite core_customfield_testsuite,core_privacy_testsuite

      2. Confirm, that there is no error: 

      OK (1348 tests, 9342 assertions)

       

      Show
      1. Run unit test for core_customfield_testsuite and core_privacy_testsuite test suite in one go:  /vendor/bin/phpunit --stop-on-failure --testsuite core_customfield_testsuite,core_privacy_testsuite 2. Confirm , that there is no error:  OK ( 1348 tests, 9342 assertions)  

      When running unit tests in parallel these failures might be caught:
       

      There was 1 error:
       
      1) approved_contextlist_test::test_default_values_set
      Warning: unexpected database modification, resetting DB state
       
      /var/www/site/lib/phpunit/classes/util.php:293
      /var/www/site/lib/phpunit/classes/advanced_testcase.php:503
      /var/www/site/lib/phpunit/classes/advanced_testcase.php:132
       
      To re-run:
      vendor/bin/phpunit "approved_contextlist_test" privacy/tests/approved_contextlist_test.php
      

       
       Command to replicate:

      ./vendor/bin/phpunit --stop-on-failure --testsuite core_customfield_testsuite,core_privacy_testsuite

            mikhailgolenkov Misha Golenkov
            mikhailgolenkov Misha Golenkov
            Simey Lameze Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.