Improvements to phpunit testing suite

Bug #1307777 reported by Nathan Lewis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
High
Nathan Lewis

Bug Description

This patch refactors how test users are created, now create_test_user, and add two new data generators, create_test_group and create_test_institution. The exists tests were updated to use the new create_test_user function. create_test_group and create_test_institution are currently unused (I've been using them in as-yet unsubmitted patches).

Tags: tests
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/3261

Changed in mahara:
status: New → In Progress
Aaron Wells (u-aaronw)
Changed in mahara:
importance: Undecided → High
milestone: none → 1.10.0
tags: added: testing
tags: added: tests
removed: testing
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/3261
Committed: http://gitorious.org/mahara/mahara/commit/73f9396ec2daea22b79767faf3598a797716d1d4
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 73f9396ec2daea22b79767faf3598a797716d1d4
Author: Nathan Lewis <email address hidden>
Date: Tue Apr 15 13:52:28 2014 +1200

Add some data generator funtions to phpunit testing suite (Bug #1307777)
- Replaces require_user and require_test_user with create_test_user
- Added create_test_group and create_test_institution

Change-Id: I8f2acbeef986943cbb4712f47226456fdf3d9570
Signed-off-by: Nathan Lewis <email address hidden>
Signed-off-by: Yuliya Bozhko <email address hidden>

Changed in mahara:
status: In Progress → Fix Committed
assignee: nobody → Nathan Lewis (nathan-lewis)
Aaron Wells (u-aaronw)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.