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

Public Member Functions

 setUp ()
 tearDown ()
 testSimpleSearch ()
 testAdvancedSearch ()
- 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 Attributes inherited from CDbTestCase
 $fixtures = false

Detailed Description

Definition at line 5 of file SearchApiTest.php.

Member Function Documentation

SearchApiTest::setUp ( )

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 from CDbTestCase.

Definition at line 16 of file SearchApiTest.php.

{
$this->_oldRepositoryApi = Yii::app()->repositoryApi;
$mock = $this->getMock('RepositoryApi', array('requestSearch'));
Yii::app()->setComponent('repositoryApi', $mock);
}

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