Eccube\Tests\Web\Admin\Order\MailControllerTest::testIndexWithConfirm PHP Method

testIndexWithConfirm() public method

    public function testIndexWithConfirm()
    {
        $form = $this->createFormData();
        $crawler = $this->client->request('POST', $this->app->url('admin_order_mail', array('id' => $this->Order->getId())), array('mail' => $form, 'mode' => 'confirm'));
        $this->assertTrue($this->client->getResponse()->isSuccessful());
        $this->expected = $form['footer'];
        $this->actual = $crawler->filter('#mail_footer')->getNode(0)->getAttribute('value');
        $this->verify();
    }