public function testfind() { $aod_index = new AOD_Index(); $aod_index->id = 1; $aod_index->location = 'modules/AOD_Index/Index/Index'; //execute the method without parameters and verify that it returns true $hits = $aod_index->find(); $this->assertTrue(is_array($hits)); //execute the method with parameters and verify that it returns true $hits = $aod_index->find('/'); $this->assertTrue(is_array($hits)); }