Skip to content

Commit

Permalink
Remove nonexistent parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
flack committed Mar 20, 2024
1 parent 2864709 commit 8d2d262
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function provider_transform()
$time = filemtime($att->get_path());
$att->close();

midcom::get()->auth->drop_sudo('midcom.datamanager');
midcom::get()->auth->drop_sudo();

return [
[null, null],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function provider_transform()
$time = filemtime($att->get_path());
$att->close();

midcom::get()->auth->drop_sudo('midcom.datamanager');
midcom::get()->auth->drop_sudo();

return [
[null, []],
Expand Down
8 changes: 4 additions & 4 deletions test/org/openpsa/user/accounthelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"), ""));
Expand All @@ -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();
}
Expand Down Expand Up @@ -324,7 +324,7 @@ public function testSet_account()
}

/**
*
*
*/
public function testWelcome_email()
{
Expand All @@ -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();
}
}
}

0 comments on commit 8d2d262

Please sign in to comment.