/** * @test * * @expectedException \Payum\Core\Exception\LogicException * @expectedExceptionMessage The merchant_id, secret fields are required. */ public function shouldThrowIfRequiredOptionsNotPassed() { $factory = new KlarnaCheckoutGatewayFactory(); $factory->create(); }