Updated tests

This commit is contained in:
Alex Bilbie
2016-02-18 12:07:50 +00:00
parent e8a01c3bcd
commit 13baa0bb26
5 changed files with 72 additions and 2 deletions

View File

@@ -40,6 +40,7 @@ class PasswordGrantTest extends \PHPUnit_Framework_TestCase
$userRepositoryMock->method('getUserEntityByUserCredentials')->willReturn($userEntity);
$refreshTokenRepositoryMock = $this->getMockBuilder(RefreshTokenRepositoryInterface::class)->getMock();
$refreshTokenRepositoryMock->method('persistNewRefreshToken')->willReturnSelf();
$grant = new PasswordGrant($userRepositoryMock, $refreshTokenRepositoryMock);
$grant->setClientRepository($clientRepositoryMock);