public function testindex() { $aod_index = new AOD_Index(); $aod_index->id = 1; $aod_index->location = 'modules/AOD_Index/Index/Index'; //test with a not searchable module, it will return false $result = $aod_index->index('Users', 1); $this->assertFalse($result); //test with a searchable module but invalid bean id, it will still index it $result = $aod_index->index('Accounts', 1); $this->assertEquals(null, $result); }