Ojs\UserBundle\Tests\Controller\UserApiControllerTest::testregenerateAPI PHP Method

testregenerateAPI() public method

public testregenerateAPI ( )
    public function testregenerateAPI()
    {
        $client = $this->client;
        $crawler = $client->request('GET', '/user/apikey/regenerate', array(), array(), array('PHP_AUTH_USER' => 'admin', 'PHP_AUTH_PW' => 'admin'));
        $this->assertStatusCode(302, $client);
    }
UserApiControllerTest