public function testSystemLookupWithApiKey() { $app = App::find(1); $apiKey = $app->api_key; Lookup::create($this->systemLookup[0]); $this->call(Verbs::GET, '/api/v2/system/environment?api_key=' . $apiKey); $this->assertEquals(Arr::get($this->systemLookup, '0.value'), Session::get('lookup.host')); }