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

testUp() public method

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