public function testNewWithPost() { $form = $this->createFormData(); $this->client->request('POST', $this->app->path('admin_customer_new'), array('admin_customer' => $form)); $NewCustomer = $this->app['eccube.repository.customer']->findOneBy(array('email' => $form['email'])); $this->assertTrue($form['email'] == $NewCustomer->getEmail()); }