assertEquals('detail',$view->type); } public function testDisplay() { $view = new ViewVcard; $view->bean = SugarTestContactUtilities::createContact(); $view->module = 'Contacts'; ob_start(); $view->display(); $output = ob_get_contents(); ob_end_clean(); SugarTestContactUtilities::removeAllCreatedContacts(); $this->assertContains( 'BEGIN:VCARD', $output ); } }