Sonata\tests\Component\Payment\Scellius\OrderScelliusTransactionGeneratorTest::testGenerator PHP Method

testGenerator() public method

public testGenerator ( )
    public function testGenerator()
    {
        $order = $this->getMock('Sonata\\Component\\Order\\OrderInterface');
        $order->expects($this->any())->method('getReference')->will($this->returnValue('120112000012'));
        $generator = new OrderScelliusTransactionGenerator();
        $this->assertEquals('000012', $generator->generate($order));
    }
OrderScelliusTransactionGeneratorTest