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

Static properties of filter_activitynames class should be reset after unit tests

XMLWordPrintable

    • MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
    • MOODLE_38_STABLE, MOODLE_39_STABLE
    • MDL-67468-Master
    • Hide

      1. Run unit test for filter_activitynames_testsuite and filter_glossary_testsuite test suites in one go:

      ./vendor/bin/phpunit --testsuite filter_activitynames_testsuite,filter_glossary_testsuite
      

      2. Confirm that there are no errors or failures.

      3. Run unit test for core_grades_testsuite and filter_activitynames_testsuite test suites in one go:

      ./vendor/bin/phpunit --testsuite core_grades_testsuite,filter_activitynames_testsuite
      

       4. Confirm that there are no errors or failures.

      Show
      1. Run unit test for filter_activitynames_testsuite and filter_glossary_testsuite test suites in one go: ./vendor/bin/phpunit --testsuite filter_activitynames_testsuite,filter_glossary_testsuite 2. Confirm that there are no errors or failures. 3. Run unit test for core_grades_testsuite and filter_activitynames_testsuite test suites in one go: ./vendor/bin/phpunit --testsuite core_grades_testsuite,filter_activitynames_testsuite  4. Confirm that there are no errors or failures.

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

       

      1)
      filter_activitynames_filter_testcase::test_links
      Failed asserting that 0 matches expected 2.
       
      /siteroot/filter/activitynames/tests/filter_test.php:63
      /siteroot/lib/phpunit/classes/advanced_testcase.php:80
       
      To re-run:
       vendor/bin/phpunit "filter_activitynames_filter_testcase" filter/activitynames/tests/filter_test.php
      

       

      1)
      filter_glossary_filter_testcase::test_brackets
      Failed asserting that 2 matches expected 3.
       
      /siteroot/filter/glossary/tests/filter_test.php:230
      /siteroot/lib/phpunit/classes/advanced_testcase.php:80
       
      To re-run:
       vendor/bin/phpunit "filter_glossary_filter_testcase" filter/glossary/tests/filter_test.php
      

       

      Commands to replicate:

      ./vendor/bin/phpunit --testsuite filter_activitynames_testsuite,filter_glossary_testsuite
      

      ./vendor/bin/phpunit --testsuite core_grades_testsuite,filter_activitynames_testsuite
      

       

            Nguyen Nathan Nguyen
            mikhailgolenkov Misha Golenkov
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Gladys Basiana Gladys Basiana
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours, 55 minutes
                4h 55m

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