Updated tests

This commit is contained in:
Alex Bilbie
2014-01-16 16:51:06 +00:00
parent 36760a07cc
commit add1aa5949
13 changed files with 805 additions and 18 deletions

View 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());
}
}