makeTestData(); if (config('ninja.testvars.travis') !== false) { $this->markTestSkipped('Skip test for Travis'); } if (! config('ninja.testvars.stripe')) { $this->markTestSkipped('Skip test no company gateways installed'); } if(CompanyGateway::count() == 0) $this->markTestSkipped('Skip test no company gateways installed'); } public function testPaymentMethodsWithCreditsEnforced() { $payment_methods = $this->client->service()->getPaymentMethods(40); $this->assertGreaterThan(0, CompanyGateway::count()); $this->assertEquals(1, count($payment_methods)); } }