-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,7 @@ public function testCreate_account() | |
|
||
// test with no password given | ||
$person = self::create_class_object(midcom_db_person::class, []); | ||
$this->assertTrue($helper->create_account($person->guid, uniqid(__FUNCTION__ . "Alice"), "", "", false, false), $helper->errstr); | ||
$this->assertTrue($helper->create_account($person->guid, uniqid(__FUNCTION__ . "Alice"), "", "", false), $helper->errstr); | ||
|
||
// this should work, so creating an account again should fail | ||
$this->assertFalse($helper->create_account($person->guid, uniqid(__FUNCTION__ . "Alice"), "")); | ||
|
@@ -58,7 +58,7 @@ public function testCreate_account() | |
$helper = new org_openpsa_user_accounthelper(); | ||
$password = $helper->generate_safe_password(); | ||
|
||
$this->assertTrue($helper->create_account($person->guid, uniqid(__FUNCTION__ . "Bob"), "[email protected]", $password, false, false), $helper->errstr); | ||
$this->assertTrue($helper->create_account($person->guid, uniqid(__FUNCTION__ . "Bob"), "[email protected]", $password, false), $helper->errstr); | ||
|
||
midcom::get()->auth->drop_sudo(); | ||
} | ||
|
@@ -324,7 +324,7 @@ public function testSet_account() | |
} | ||
|
||
/** | ||
* | ||
* | ||
*/ | ||
public function testWelcome_email() | ||
{ | ||
|
@@ -333,5 +333,5 @@ public function testWelcome_email() | |
midcom::get()->auth->request_sudo('org.openpsa.user'); | ||
$this->assertTrue($accounthelper->welcome_email()); | ||
midcom::get()->auth->drop_sudo(); | ||
} | ||
} | ||
} |