Eccube\Tests\Web\Admin\Customer\CustomerEditControllerTest::testIndexWithPost PHP Метод

testIndexWithPost() публичный Метод

testIndexWithPost
public testIndexWithPost ( )
    public function testIndexWithPost()
    {
        $form = $this->createFormData();
        $this->client->request('POST', $this->app->path('admin_customer_edit', array('id' => $this->Customer->getId())), array('admin_customer' => $form));
        $this->assertTrue($this->client->getResponse()->isRedirect($this->app->url('admin_customer_edit', array('id' => $this->Customer->getId()))));
        $EditedCustomer = $this->app['eccube.repository.customer']->find($this->Customer->getId());
        $this->expected = $form['email'];
        $this->actual = $EditedCustomer->getEmail();
        $this->verify();
    }