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

Error on PHPUNIT test for accesslib_test.php

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.5, 2.5.1, 2.6
    • Fix Version/s: 2.4.6, 2.5.2
    • Component/s: Unit tests
    • Labels:
      None
    • Testing Instructions:
      Hide

      1/ set define('CONTEXT_CACHE_MAX_SIZE', 7500);
      2/ vendor/bin/phpunit --colors accesslib_testcase lib/tests/accesslib_test.php
      3/ repeat with some other numbers about 1000, such as 1001,1002,1003,1004

      Show
      1/ set define('CONTEXT_CACHE_MAX_SIZE', 7500); 2/ vendor/bin/phpunit --colors accesslib_testcase lib/tests/accesslib_test.php 3/ repeat with some other numbers about 1000, such as 1001,1002,1003,1004
    • Affected Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      w29_MDL-40611_m26_accesslibtest

      Description

      While testing phpunit test for MDL-40403, I found the following error:

      There was 1 failure:
       
      1) accesslib_testcase::test_permission_evaluation
      Failed asserting that 5102 matches expected 5101.
       
      /integration/master/lib/tests/accesslib_test.php:2330
      /integration/master/lib/phpunit/classes/advanced_testcase.php:76
       
      To re-run:
       /usr/bin/phpunit accesslib_testcase lib/tests/accesslib_test.php
       
      FAILURES!
      Tests: 42, Assertions: 5683, Failures: 1
      

        Attachments

          Activity

            People

            Assignee:
            skodak Petr Skoda
            Reporter:
            rwijaya Rossiani Wijaya
            Integrator:
            Eloy Lafuente (stronk7)
            Tester:
            Dan Poltawski
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              9/Sep/13