/**
  * @test
  */
 public function shouldAddPayumActionTagStatusAction()
 {
     $factory = new OfflinePaymentFactory();
     $container = new ContainerBuilder();
     $factory->create($container, 'aContextName', array('obtain_credit_card' => false, 'actions' => array(), 'apis' => array(), 'extensions' => array()));
     $actionDefinition = $container->getDefinition('payum.offline.action.status');
     $tagAttributes = $actionDefinition->getTag('payum.action');
     $this->assertCount(1, $tagAttributes);
     $this->assertEquals($factory->getName(), $tagAttributes[0]['factory']);
 }
    /**
     * @test
     */
    public function shouldAllowGetName()
    {
        $factory = new OfflinePaymentFactory;

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