Eccube\Tests\Plugin\Web\Mypage\DeliveryControllerTest::testNewWithPost PHP Method

testNewWithPost() public method

public testNewWithPost ( )
    public function testNewWithPost()
    {
        $this->logIn($this->Customer);
        $client = $this->client;
        $form = $this->createFormData();
        $crawler = $client->request('POST', $this->app->path('mypage_delivery_new'), array('customer_address' => $form));
        $this->assertTrue($client->getResponse()->isRedirect($this->app->url('mypage_delivery')));
        $hookpoins = array(EccubeEvents::FRONT_MYPAGE_DELIVERY_EDIT_INITIALIZE, EccubeEvents::FRONT_MYPAGE_DELIVERY_EDIT_COMPLETE);
        $this->verifyOutputString($hookpoins);
    }