private function prepareUserAndKey() { $this->test_data->user = Factory_User::create(); $this->test_data->api_key = Factory_ApiKey::create(array('uid' => $this->test_data->user->uid)); }
private function prepareUserAndApiKey() { $this->test_data->user = Factory_User::create(); $this->test_data->api_key = Factory_ApiKey::create(array('uid' => $this->test_data->user->uid)); $this->test_data->headers = array("X-MATECAT-KEY: {$this->test_data->api_key->api_key}", "X-MATECAT-SECRET: {$this->test_data->api_key->api_secret}"); }