Sonata\tests\CustomerBundle\Twig\Extension\AddressExtensionTest::testRenderAddressMissingId PHP Method

testRenderAddressMissingId() public method

    public function testRenderAddressMissingId()
    {
        $environment = $this->getMockBuilder('Twig_Environment')->disableOriginalConstructor()->getMock();
        $deliverySelector = $this->getMock('Sonata\\Component\\Delivery\\ServiceDeliverySelectorInterface');
        $address = array('firstname' => '', 'lastname' => '', 'address1' => '', 'postcode' => '', 'city' => '', 'country_code' => '');
        $extension = new AddressExtension($deliverySelector);
        $extension->renderAddress($environment, $address, true, true);
    }