/** * Initializes connection settings */ public function __construct($project = null, $url = null, $devkey = null, $testPlan = null, $build = null) { //Initialize Testlink credentials if (isset($url)) { Mage_Testlink_Connector::$SERVER_URL = $url; } Mage_Testlink_Connector::$devKey = $devkey; $this->_project = $project; $this->_testPlan = $testPlan; $this->_build = $build; if (isset($devkey) && isset($project) && $devkey != "null" && $project != "null" && $devkey != "false" && $project != "false") { $this->instantiateObservers(); } }
protected function setUp() { Mage_Testlink_Connector::$devKey = "12312341234sdfgsdfgsdf"; $this->_connector = new Mage_Testlink_Connector(); }