Public Member Functions | |
__get ($name) | |
__call ($name, $params) | |
getFixtureManager () | |
getFixtureData ($name) | |
getFixtureRecord ($name, $alias) |
Protected Member Functions | |
setUp () |
Protected Attributes | |
$fixtures = false |
Definition at line 40 of file CDbTestCase.php.
CDbTestCase::__call | ( | $name, | |
$params | |||
) |
PHP magic method. This method is overridden so that named fixture ActiveRecord instances can be accessed in terms of a method call.
string | $name | method name |
string | $params | method parameters |
Definition at line 72 of file CDbTestCase.php.
References getFixtureManager().
CDbTestCase::__get | ( | $name | ) |
PHP magic method. This method is overridden so that named fixture data can be accessed like a normal property.
string | $name | the property name |
Definition at line 57 of file CDbTestCase.php.
References getFixtureManager().
CDbTestCase::getFixtureData | ( | $name | ) |
string | $name | the fixture name (the key value in fixtures). |
Definition at line 92 of file CDbTestCase.php.
References getFixtureManager().
CDbTestCase::getFixtureManager | ( | ) |
Definition at line 83 of file CDbTestCase.php.
Referenced by __call(), __get(), getFixtureData(), getFixtureRecord(), and setUp().
CDbTestCase::getFixtureRecord | ( | $name, | |
$alias | |||
) |
string | $name | the fixture name (the key value in fixtures). |
string | $alias | the alias of the fixture data row |
Definition at line 103 of file CDbTestCase.php.
References getFixtureManager().
|
protected |
Sets up the fixture before executing a test method. If you override this method, make sure the parent implementation is invoked. Otherwise, the database fixtures will not be managed properly.
Reimplemented in ApalinesTest, historyTest, LanguageTest, MainNavigationTreeTest, BulkTest, CommentsModuleAccessMethodsTest, LikeTest, ShoppingcartTest, and SearchApiTest.
Definition at line 113 of file CDbTestCase.php.
References getFixtureManager().