Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
Public Member Functions | List of all members
ProfileFieldTest Class Reference
Inheritance diagram for ProfileFieldTest:
CDbTestCase

Public Member Functions

 testCreate ($attributes)
 testFind ($attributes)
 testDelete ($attributes)
 testItemAllias ()
 testGetLabels ()
 testSearch ()
 provider ()
- Public Member Functions inherited from CDbTestCase
 __get ($name)
 __call ($name, $params)
 getFixtureManager ()
 getFixtureData ($name)
 getFixtureRecord ($name, $alias)

Additional Inherited Members

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

Detailed Description

Created by JetBrains PhpStorm. User: andrew Date: 7/16/12 Time: 6:27 PM To change this template use File | Settings | File Templates.

Definition at line 9 of file ProfileFieldTest.php.

Member Function Documentation

ProfileFieldTest::testCreate (   $attributes)

provider

Definition at line 14 of file ProfileFieldTest.php.

{
$profileField = new ProfileField();
$profileField->attributes = $attributes;
$this->assertTrue($profileField->save());
}
ProfileFieldTest::testDelete (   $attributes)
Parameters
$attributestestFind provider

Definition at line 36 of file ProfileFieldTest.php.

References ProfileField\model().

{
$this->assertEquals(1, ProfileField::model()->deleteAllByAttributes($attributes));
}
ProfileFieldTest::testFind (   $attributes)

testCreate provider

Definition at line 25 of file ProfileFieldTest.php.

References ProfileField\model().

{
$profileField = ProfileField::model()->findByAttributes($attributes);
$this->assertNotNull($profileField);
}

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