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

testDown() public method

public testDown ( )
    public function testDown()
    {
        $pid = 1;
        $Payment = $this->app['eccube.repository.payment']->find($pid);
        $before = $Payment->getRank();
        $this->client->request('PUT', $this->app->url('admin_setting_shop_payment_down', array('id' => $pid)));
        $this->assertTrue($this->client->getResponse()->isRedirection());
        $after = $Payment->getRank();
        $this->actual = $after;
        $this->expected = $before - 1;
        $this->verify();
    }