Eccube\Tests\Web\Admin\Product\CategoryControllerTest::testMoveRank PHP Method

testMoveRank() public method

public testMoveRank ( )
    public function testMoveRank()
    {
        $Category = $this->app['eccube.repository.category']->findOneBy(array('name' => '子1'));
        $crawler = $this->client->request('POST', $this->app->url('admin_product_category_rank_move'), array($Category->getId() => 10), array(), array('HTTP_X-Requested-With' => 'XMLHttpRequest', 'CONTENT_TYPE' => 'application/json'));
        $this->assertTrue($this->client->getResponse()->isSuccessful());
        $MovedCategory = $this->app['eccube.repository.category']->find($Category->getId());
        $this->expected = 10;
        $this->actual = $MovedCategory->getRank();
        $this->verify();
    }