mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-02 00:43:11 +05:30
21 lines
510 B
PHP
21 lines
510 B
PHP
<?php
|
|
|
|
namespace LeagueTests\Entity;
|
|
|
|
use League\OAuth2\Server\Entity\ScopeEntity;
|
|
use \Mockery as M;
|
|
|
|
class ScopeTest extends \PHPUnit_Framework_TestCase
|
|
{
|
|
public function testSetGet()
|
|
{
|
|
$server = M::mock('League\OAuth2\Server\AbstractServer');
|
|
$scope = new ScopeEntity($server);
|
|
$scope->setId('foobar');
|
|
$scope->setDescription('barfoo');
|
|
|
|
$this->assertEquals('foobar', $scope->getId());
|
|
$this->assertEquals('barfoo', $scope->getDescription());
|
|
}
|
|
}
|