Eccube\Tests\Web\Admin\Setting\Shop\MailControllerTest::testEdit PHP Method

testEdit() public method

Edit
public testEdit ( )
    public function testEdit()
    {
        $MailTemplate = $this->createMail();
        $form = array('_token' => 'dummy', 'template' => $MailTemplate->getId(), 'subject' => 'Test Subject', 'header' => 'Test Header', 'footer' => 'Test Footer');
        $this->client->request('POST', $this->app->url('admin_setting_shop_mail_edit', array('id' => $MailTemplate->getId())), array('mail' => $form));
        $redirectUrl = $this->app->url('admin_setting_shop_mail_edit', array('id' => $MailTemplate->getId()));
        $this->assertTrue($this->client->getResponse()->isRedirect($redirectUrl));
        $this->actual = $form['subject'];
        $this->expected = $MailTemplate->getSubject();
        $this->verify();
    }