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
Inheritance diagram for RegistrationFormTest:
CDbTestCase

Public Member Functions

 testCreateUsernameUnique ()
 testCreateUsernameNotUnique ()
 testCreateUsernameNotRequired ()
- Public Member Functions inherited from CDbTestCase
 __get ($name)
 __call ($name, $params)
 getFixtureManager ()
 getFixtureData ($name)
 getFixtureRecord ($name, $alias)

Static Public Member Functions

static setUpBeforeClass ()
static tearDownAfterClass ()

Additional Inherited Members

- Protected Member Functions inherited from CDbTestCase
 setUp ()
- Protected Attributes inherited from CDbTestCase
 $fixtures = false

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: