Eccube\Tests\Service\ShoppingServiceTest::testGetOrderWithNonMember PHP Method

testGetOrderWithNonMember() public method

    public function testGetOrderWithNonMember()
    {
        // 複数配送対応としておく
        $BaseInfo = $this->app['eccube.repository.base_info']->get();
        $BaseInfo->setOptionMultipleShipping(Constant::ENABLED);
        $NonMember = $this->createNonMember();
        $this->app['security']->setToken(new UsernamePasswordToken($NonMember, null, 'Customer', array('IS_AUTHENTICATED_ANONYMOUSLY')));
        $NewOrder = $this->app['eccube.service.shopping']->createOrder($NonMember);
        $Order = $this->app['eccube.service.shopping']->getOrder();
        $this->expected = $NewOrder->getPreOrderId();
        $this->actual = $Order->getPreOrderId();
        $this->verify();
    }