Cleaned up tests

This commit is contained in:
Alex Bilbie
2014-05-03 10:55:25 +01:00
parent ed7f5370ca
commit 5c8ed58c67
22 changed files with 75 additions and 88 deletions

View File

@@ -3,7 +3,6 @@
namespace LeagueTests\Entity;
use League\OAuth2\Server\Entity\AccessTokenEntity;
use League\OAuth2\Server\Entity\AuthCodeEntity;
use League\OAuth2\Server\Entity\ClientEntity;
use League\OAuth2\Server\Entity\RefreshTokenEntity;
use League\OAuth2\Server\Entity\SessionEntity;
@@ -11,7 +10,7 @@ use League\OAuth2\Server\Entity\ScopeEntity;
use League\OAuth2\Server\AuthorizationServer;
use \Mockery as M;
class SessionTests extends \PHPUnit_Framework_TestCase
class SessionTest extends \PHPUnit_Framework_TestCase
{
public function testSetGet()
{
@@ -114,7 +113,7 @@ class SessionTests extends \PHPUnit_Framework_TestCase
$this->assertFalse($entity->hasScope('foo'));
}
function testSave()
public function testSave()
{
$server = M::mock('League\OAuth2\Server\AuthorizationServer');
$server->shouldReceive('setSessionStorage');
@@ -144,4 +143,4 @@ class SessionTests extends \PHPUnit_Framework_TestCase
$entity = new SessionEntity($server);
$this->assertEquals(null, $entity->save());
}
}
}