Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
Public Member Functions | Static Public Member Functions | List of all members
RegistrationFormTest Class Reference

Public Member Functions

 testCreateUsernameUnique ()
 testCreateUsernameNotUnique ()
 testCreateUsernameNotRequired ()

Static Public Member Functions

static setUpBeforeClass ()
static tearDownAfterClass ()

Detailed Description

Gentics Portal.Node PHP Author & Copyright (c) by Gentics Software GmbH sales.nosp@m.@gen.nosp@m.tics..nosp@m.com http://www.gentics.com Licenses can be found in the LICENSE.txt file in the root-folder of this installation You must not use this software without a valid license agreement.

Definition at line 11 of file RegistrationFormTest.php.

Member Function Documentation

RegistrationFormTest::testCreateUsernameNotUnique ( )

testCreateUsernameUnique

Definition at line 62 of file RegistrationFormTest.php.

{
Yii::app()->getModule('user')->usernameUnique = false;
Yii::app()->getModule('user')->usernameRequired = true;
$username = self::$username;
$form = new RegistrationForm();
$form->attributes = array(
'username' => $username,
'email' => "$username@$username.com",
'password' => $username,
'verifyPassword' => $username
);
$this->assertFalse($form->validate());
}

The documentation for this class was generated from the following file: