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

$this->setUser(2); in unit tests is evil

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.3
    • Component/s: Unit tests
    • Labels:

      Description

      We really should have ->setAdminUser() and ->setNotLoggedInUser() methods, etc. Rather than using magic numbers.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    25/Jun/12