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

Public Member Functions

 testCreate ($attributes)
 testFind ($attributes)
 testDelete ($attributes)
 testCreateFromService ()
 provider ()

Detailed Description

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

Definition at line 9 of file AccountTest.php.

Member Function Documentation

AccountTest::testCreate (   $attributes)

provider

Definition at line 15 of file AccountTest.php.

{
$account = new Account();
$account->attributes = $attributes;
$this->assertTrue($account->save());
}
AccountTest::testDelete (   $attributes)

provider testCreate

Definition at line 38 of file AccountTest.php.

References Account\model().

{
unset($attributes['data']);
$this->assertEquals(1, Account::model()->deleteAllByAttributes($attributes));
}
AccountTest::testFind (   $attributes)

provider testCreate

Definition at line 26 of file AccountTest.php.

References Account\model().

{
unset($attributes['data']);
$account = Account::model()->findByAttributes($attributes);
$this->assertNotNull($account);
$this->assertTrue(is_array($account->data));
}

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