/** * Test index */ public function testIndex() { $project = new Project_Models_Project(array('db' => $this->sharedFixture)); $project->title = 'CCÄC DDÖD TTÜT'; $project->path = '/1/'; $project->ownerId = 1; $project->projectId = 1; $project->save(); $project->saveRights(array(1 => 255, 2 => 255)); $search = new Phprojekt_Search(); $result = $search->search('CCÄC'); $this->assertEquals(1, count($result)); $result = $search->search('CCÄC DDÖD'); $this->assertEquals(1, count($result)); }