-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
- replace
switchUser
/getUser*
withbecomeUser*
- add assertions into each
becomeUser
this will make tests simpler to write since they don't need to sanity check the initial state of the database like this:
switchUser(...getUserIsPIHasNoMembersNoMemberRequests());
$pi_group = $USER->getPIGroup();
$gid = $pi_group->getPIUID();
$this->assertTrue($USER->isPI());
$this->assertEquals([], $pi_group->getGroupMembers());
$this->assertEquals([], $SQL->getRequests($gid));
Metadata
Metadata
Assignees
Labels
No labels