makeTestData(); $this->withoutMiddleware( ThrottleRequests::class ); if (config('ninja.testvars.travis') !== false) { $this->markTestSkipped('Skip test for Travis'); } } public function testDesignRoute200() { $data = [ 'entity' => 'invoice', 'entity_id' => $this->invoice->hashed_id, 'settings_type' => 'company', 'settings' => (array)$this->company->settings, ]; $response = $this->withHeaders([ 'X-API-SECRET' => config('ninja.api_secret'), 'X-API-TOKEN' => $this->token, ])->post('/api/v1/live_design/', $data); $response->assertStatus(200); } }