mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
Updated tests
This commit is contained in:
20
tests/Entities/ScopeTest.php
Normal file
20
tests/Entities/ScopeTest.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace LeagueTests\Entities;
|
||||
|
||||
use League\OAuth2\Server\Entity\Scope;
|
||||
use \Mockery as M;
|
||||
|
||||
class ScopeTests extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function testSetGet()
|
||||
{
|
||||
$server = M::mock('League\OAuth2\Server\AbstractServer');
|
||||
$scope = new Scope($server);
|
||||
$scope->setId('foobar');
|
||||
$scope->setDescription('barfoo');
|
||||
|
||||
$this->assertEquals('foobar', $scope->getId());
|
||||
$this->assertEquals('barfoo', $scope->getDescription());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user