/**
  * @test
  */
 public function shouldAddPayumActionTagNotifyAction()
 {
     $factory = new KlarnaCheckoutPaymentFactory();
     $container = new ContainerBuilder();
     $factory->create($container, 'aContextName', array('obtain_credit_card' => false, 'secret' => 'aSecret', 'merchant_id' => 'aMerchantId', 'sandbox' => true, 'actions' => array(), 'apis' => array(), 'extensions' => array()));
     $actionDefinition = $container->getDefinition('payum.klarna.checkout.action.notify');
     $tagAttributes = $actionDefinition->getTag('payum.action');
     $this->assertCount(1, $tagAttributes);
     $this->assertEquals($factory->getName(), $tagAttributes[0]['factory']);
 }
    /**
     * @test
     */
    public function shouldAllowGetName()
    {
        $factory = new KlarnaCheckoutPaymentFactory;

        $this->assertEquals('klarna_checkout', $factory->getName());
    }