Eccube\Tests\Web\ShoppingControllerWithNonmemberTest::testNonmemberInputWithPost PHP Method

testNonmemberInputWithPost() public method

    public function testNonmemberInputWithPost()
    {
        $client = $this->createClient();
        $this->scenarioCartIn($client);
        $formData = $this->createNonmemberFormData();
        $this->scenarioInput($client, $formData);
        $Nonmember = $this->app['session']->get('eccube.front.shopping.nonmember');
        $this->assertNotNull($Nonmember);
        $this->assertNotNull($this->app['session']->get('eccube.front.shopping.nonmember.customeraddress'));
        $this->expected = $formData['name']['name01'];
        $this->actual = $Nonmember['customer']->getName01();
        $this->verify();
        $this->assertTrue($client->getResponse()->isRedirect($this->app->url('shopping')));
    }