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

Public Member Functions

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

Static Public Member Functions

static setUpBeforeClass ()

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 CommentTest.php.

Member Function Documentation

CommentTest::testCreate (   $attributes)

provider

Definition at line 23 of file CommentTest.php.

{
$comment = new Comment();
$comment->attributes = $attributes;
$this->assertTrue($comment->save());
return $comment;
}
CommentTest::testDelete (   $attributes)

testHash provider

Definition at line 55 of file CommentTest.php.

References Comment\model().

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

testCreate provider

Definition at line 36 of file CommentTest.php.

References Comment\model().

{
$this->assertCount(1, Comment::model()->findAllByAttributes($attributes));
}
CommentTest::testHash (   $attributes)

testFind provider

Definition at line 46 of file CommentTest.php.

References Comment\model().

{
$this->assertNotEmpty(Comment::model()->findByAttributes($attributes)->hash());
}

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