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

Rename PHPUnit method from can_update_library to test_can_update_library

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.8, 3.9
    • Fix Version/s: 3.8.2
    • Component/s: H5P
    • Testing Instructions:
      Hide
      1. Before the patch, run phpunit tests from file h5p/tests/helper_test.php: 

        mdk phpunit -r -u h5p/tests/helper_test.php

      2. Check there are executed 10 tests and 21 assertions.
      3. After the patch, run again phpunit tests from file h5p/tests/helper_test.php: 

        mdk phpunit -r -u h5p/tests/helper_test.php

      4. Check now there are executed 11 tests and 23 assertions.
      Show
      Before the patch, run phpunit tests from file h5p/tests/helper_test.php:  mdk phpunit -r -u h5p/tests/helper_test.php Check there are executed 10 tests and 21 assertions. After the patch, run again phpunit tests from file h5p/tests/helper_test.php:  mdk phpunit -r -u h5p/tests/helper_test.php Check now there are executed 11 tests and 23 assertions.
    • Affected Branches:
      MOODLE_38_STABLE, MOODLE_39_STABLE
    • Fixed Branches:
      MOODLE_38_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-68038-master
    • Sprint:
      Moppies Kanban

      Description

      In order to execute it automatically, the method can_update_library should be renamed to test_can_update_library in h5p/tests/helper_test.php.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sarjona Sara Arjona (@sarjona)
              Reporter:
              sarjona Sara Arjona (@sarjona)
              Peer reviewer:
              Carlos Escobedo Carlos Escobedo
              Integrator:
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Tester:
              Janelle Barcega Janelle Barcega
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/Mar/20

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 1 minute
                  1h 1m