PartKeepr\AuthBundle\Tests\Controller\DefaultControllerTest::testGetSalt PHP Method

testGetSalt() public method

public testGetSalt ( )
    public function testGetSalt()
    {
        $client = static::createClient();
        $request = ['username' => 'admin'];
        $client->request('POST', '/api/users/getSalt', [], [], ['CONTENT_TYPE' => 'application/json'], json_encode($request));
        $response = json_decode($client->getResponse()->getContent());
        $admin = $this->fixtures->getReference('user.admin');
        /*
         * @var FOSUser $admin
         */
        $this->assertEquals($admin->getSalt(), $response);
    }
DefaultControllerTest