17 lines
417 B
PHP
17 lines
417 B
PHP
<?php
|
|
class SearchTest extends Doctrine_Record
|
|
{
|
|
public function setTableDefinition()
|
|
{
|
|
$this->hasColumn('title', 'string', 100);
|
|
$this->hasColumn('content', 'string');
|
|
}
|
|
public function setUp()
|
|
{
|
|
$options = array('generateFiles' => false,
|
|
'fields' => array('title', 'content'));
|
|
|
|
$this->actAs('Searchable', $options);
|
|
}
|
|
}
|