/** * @test * @group library */ public function test_createUserShouldSendRegisterMailAsExpected() { ConfigHelper::mergeIntoConfig(array('user' => array('mail' => array('optin' => array('from' => array('adress' => '*****@*****.**', 'name' => 'rukzuk-testrun-init-system')))))); $userCreateValues = array('email' => '*****@*****.**', 'lastname' => 'phpunit_2', 'firstname' => 'test_2', 'isSuperuser' => true, 'isDeletable' => false); $user = $this->business->createUser($userCreateValues, true); $this->assertUserCreatedSuccessfully($userCreateValues, $user); $this->asserUserExists($user->getId(), $userCreateValues); $this->assertRegisterMailSend($user); }
/** * @test * @group library * @expectedException \Cms\Exception * @expectedExceptionCode 2007 */ public function instanceModuleQuotaDisallowsFtpLogin() { $username = '******'; $password = '******'; $this->updateConfigModuleEnableDev(false); $this->business->checkFtpLogin($username, $password); }
/** * @test * @group library * @expectedException \Cms\Exception * @expectedExceptionCode 2007 */ public function userHasNoFtpAccess() { $username = '******'; $password = '******'; $this->business->checkFtpLogin($username, $password); }