Improved tests

This commit is contained in:
Alex Bilbie
2016-04-10 16:14:01 +01:00
parent 6359535e32
commit 92a483b3bd
5 changed files with 184 additions and 366 deletions

View File

@@ -133,7 +133,6 @@ class ServerTest extends \PHPUnit_Framework_TestCase
$grant = new AuthCodeGrant(
$authCodeRepository,
$this->getMock(RefreshTokenRepositoryInterface::class),
$this->getMock(UserRepositoryInterface::class),
new \DateInterval('PT10M')
);
@@ -162,7 +161,6 @@ class ServerTest extends \PHPUnit_Framework_TestCase
$grant = new AuthCodeGrant(
$this->getMock(AuthCodeRepositoryInterface::class),
$this->getMock(RefreshTokenRepositoryInterface::class),
$this->getMock(UserRepositoryInterface::class),
new \DateInterval('PT10M')
);
$grant->setClientRepository($clientRepositoryMock);