Eccube\Tests\Web\Admin\Setting\Shop\PaymentControllerTest::testDeleteSuccess PHP Method

testDeleteSuccess() public method

public testDeleteSuccess ( )
    public function testDeleteSuccess()
    {
        $pid = 1;
        $this->client->request('DELETE', $this->app->url('admin_setting_shop_payment_delete', array('id' => $pid)));
        $this->assertTrue($this->client->getResponse()->isRedirection());
        $Payment = $this->app['eccube.repository.payment']->find($pid);
        $this->actual = $Payment->getDelFlg();
        $this->expected = Constant::ENABLED;
        $this->verify();
    }