{ $this->hasColumn('title', 'string', 255); $this->hasColumn('content', 'string', null); } public function setUp() { parent::setUp(); $search = new rtSearchTemplate(array('fields' => array('title', 'content'))); $this->actAs($search); } } Doctrine_Core::dropDatabases(); Doctrine_Core::createDatabases(); Doctrine_Core::createTablesFromArray(array('Tester', 'rtIndex')); $tester = new Tester(); $t->is($tester->getSearchFields(), array('title', 'content'), '->getSearchFields() returns an array of configured fields'); $title = 'Hello, this is a test object!'; $content = 'It really doesn\'t do too much. Just a little bit of text to hold and save for testing.'; $tester['title'] = $title; $tester['content'] = $content; $t->is($tester->getSearchBlob(), $title . ' ' . $content, '->getSearchBlob() returns a combined string'); $blob_array = array('hello', 'test', 'object', 'realli', 'doesnt', 'text', 'hold', 'save', 'test'); $t->is(array_values($tester->getSearchIndexArray()), $blob_array, '->getSearchIndexArray() returns a stemmed array of words'); Doctrine_Core::createTablesFromArray(array('Tester')); //$t->is($tester->getLanguages(), false, '->getLanguages() returns false for non i18n doctrine models'); class I18NTester extends Doctrine_Record { public function setTableDefinition() { $this->hasColumn('title', 'string', 255); $this->hasColumn('content', 'string', null);