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

core_reportbuilder\local\helpers\user_profile_fields_test.php tests fail when other user profile fields exist

XMLWordPrintable

    • MOODLE_400_STABLE, MOODLE_401_STABLE
    • MOODLE_400_STABLE, MOODLE_401_STABLE
    • MDL-77659_401
    • Hide
      1. Unzip the attached file local_fortest.zip into the local folder of your Moodle install. (It is a simple local plugin that defines a visible custom profile field with shortname 'catname' when it is installed.)
      2. Initialise PHPUnit and run  core_reportbuilder_testsuite 

        php admin/tool/phpunit/cli/init.php
        vendor/bin/phpunit --testsuite  core_reportbuilder_testsuite
        

        Or, in case of using MDK:

        mdk phpunit -r -s  core_reportbuilder|
        

      3. Verify that the tests pass.
      Show
      Unzip the attached file local_fortest.zip into the local folder of your Moodle install. (It is a simple local plugin that defines a visible custom profile field with shortname 'catname' when it is installed.) Initialise PHPUnit and run  core_reportbuilder_testsuite  php admin/tool/phpunit/cli/init.php vendor/bin/phpunit --testsuite  core_reportbuilder_testsuite Or, in case of using MDK: mdk phpunit -r -s  core_reportbuilder| Verify that the tests pass.

      The following PHPUnit tests in core_reportbuilder\local\helpers\user_profile_fields_test.php fail when other user profile fields exist

       
      core_reportbuilder\local\helpers\user_profile_fields_test::test_get_columns
      Failed asserting that actual size 7 matches expected size 6.
      /var/www/html/reportbuilder/tests/local/helpers/user_profile_fields_test.php:87/var/www/html/lib/phpunit/classes/advanced_testcase.php:80
       

      core_reportbuilder\local\helpers\user_profile_fields_test::test_get_filters
      Failed asserting that actual size 7 matches expected size 6.
      /var/www/html/reportbuilder/tests/local/helpers/user_profile_fields_test.php:157
      /var/www/html/lib/phpunit/classes/advanced_testcase.php:80

        1. 400.png
          400.png
          74 kB
        2. 401.png
          401.png
          77 kB
        3. local_fortest.zip
          2 kB
        4. master.png
          master.png
          75 kB

            Anupama Sarjoshi Anupama Sarjoshi
            Anupama Sarjoshi Anupama Sarjoshi
            Mahmoud Kassaei Mahmoud Kassaei
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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