/**
  * Sets up the fixture.
  * This method is called before a test is executed.
  *
  * @access protected
  */
 protected function setUp()
 {
     parent::setUp();
     $this->_instance = new Crm_Frontend_Json();
     $this->_fsController = Tinebase_FileSystem::getInstance();
     Crm_Controller_Lead::getInstance()->duplicateCheckFields(array());
 }
 /**
  * (non-PHPdoc)
  * @see tests/tine20/Crm/AbstractTest::setUp()
  */
 public function setUp()
 {
     parent::setUp();
     $smtpConfig = Tinebase_Config::getInstance()->get(Tinebase_Config::SMTP, new Tinebase_Config_Struct())->toArray();
     if (empty($smtpConfig)) {
         $this->markTestSkipped('No SMTP config found: this is needed to send notifications.');
     }
     $this->_leadController = Crm_Controller_Lead::getInstance();
 }