Sonata\Tests\Component\Transformer\BasketTransformerTest::testInvalidBillingAddress PHP Method

testInvalidBillingAddress() public method

    public function testInvalidBillingAddress()
    {
        $this->setExpectedException('RuntimeException', 'Invalid billing address');
        $basket = new Basket();
        $customer = $this->getMock('Sonata\\Component\\Customer\\CustomerInterface');
        $basket->setCustomer($customer);
        $currency = new Currency();
        $currency->setLabel('EUR');
        $basket->setCurrency($currency);
        $this->getBasketTransform()->transformIntoOrder($basket);
    }