oauth2-server/tests/Entity/ScopeTest.php

20 lines
504 B
PHP
Raw Normal View History

2014-01-16 22:21:06 +05:30
<?php
2014-05-02 19:42:15 +05:30
namespace LeagueTests\Entity;
2014-01-16 22:21:06 +05:30
2014-05-02 19:42:15 +05:30
use League\OAuth2\Server\Entity\ScopeEntity;
2014-01-16 22:21:06 +05:30
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());
}
}