public function setUp() { // Only execute tests when passwordless is actually one of the configured adapters for // this project. $this->_testsEnabled = isset(Zend_Registry::get('config')->auth->adapters->passwordless); if (!$this->_testsEnabled) { return; } parent::setUp(); $this->_helper->injectConfigValues(array('app' => array('domain' => 'testing.example.com'), 'organization' => array('email' => self::TEST_EMAIL), 'auth' => array('adapters' => array('passwordless' => array('email_body' => $this->_getMockEmailMessage(), 'email_subject' => "Here's your login token", 'email_body_snippet_identifier' => null, 'email_subject_snippet_identifier' => null, 'email_transport_method' => 'Zend_Mail_Transport_File', 'email_transport_options' => array('path' => GARP_APPLICATION_PATH . '/../tests/tmp', 'callback' => array($this, 'generateEmailFilename'))))))); }
public function setUp() { parent::setUp(); file_put_contents($this->_getSemverLocation(), "---\n :major: 2\n :minor: 4\n :patch: 29\n :special: ''"); file_put_contents($this->_getSpecialSemverLocation(), "---\n :major: 0\n :minor: 7\n :patch: 7\n :special: 'alpha'"); }
public function setUp() { parent::setUp(); $this->_helper->injectConfigValues(array('cdn' => array('baseUrl' => 'https://s3-eu-west-1.amazonaws.com/static.melkweg.nl', 's3' => array('apikey' => '12345', 'secret' => '67890'), 'type' => 's3', 'ssl' => true, 'path' => array('upload' => array('image' => '/images', 'document' => '/documents'), 'static' => array('image' => '/static-images', 'document' => '/static-documents')), 'extensions' => 'jpg,gif,png'))); }
public function setUp() { parent::setUp(); $this->_helper->injectConfigValues(array('cdn' => array('type' => 'local', 'extensions' => 'jpg,jpeg,gif,png,zip,pdf,xls,xlsx,csv,json', 'path' => array('upload' => array('image' => GARP_APPLICATION_PATH . '/../tests/tmp', 'document' => GARP_APPLICATION_PATH . '/../tests/tmp'), 'static' => array('image' => GARP_APPLICATION_PATH . '/../tests/tmp', 'document' => GARP_APPLICATION_PATH . '/../tests/tmp'))))); }