diff --git a/app/Http/Requests/Client/StoreClientRequest.php b/app/Http/Requests/Client/StoreClientRequest.php index 942697359931..64c2b2eb3aac 100644 --- a/app/Http/Requests/Client/StoreClientRequest.php +++ b/app/Http/Requests/Client/StoreClientRequest.php @@ -63,6 +63,8 @@ class StoreClientRequest extends Request { $input = $this->all(); + $input['settings'] = new \stdClass; + $this->replace($input); } diff --git a/tests/Feature/ClientModelTest.php b/tests/Feature/ClientModelTest.php index 6b6ab3ec6545..fdcb5b659367 100644 --- a/tests/Feature/ClientModelTest.php +++ b/tests/Feature/ClientModelTest.php @@ -24,14 +24,15 @@ class ClientModelTest extends TestCase $this->makeTestData(); + if(config('ninja.testvars.travis') == FALSE) + $this->markTestSkipped('Skip test for Travis'); } public function testPaymentMethods() { - if(config('ninja.testvars.travis')) - $this->markTestSkipped('Skip test for Travis'); + $amount = 40;