diff options
Diffstat (limited to 'Tests/Core/Role/SwitchUserRoleTest.php')
-rw-r--r-- | Tests/Core/Role/SwitchUserRoleTest.php | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/Tests/Core/Role/SwitchUserRoleTest.php b/Tests/Core/Role/SwitchUserRoleTest.php deleted file mode 100644 index bf9b173..0000000 --- a/Tests/Core/Role/SwitchUserRoleTest.php +++ /dev/null @@ -1,31 +0,0 @@ -<?php - -/* - * This file is part of the Symfony package. - * - * (c) Fabien Potencier <fabien@symfony.com> - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Security\Tests\Core\Role; - -use Symfony\Component\Security\Core\Role\SwitchUserRole; - -class SwitchUserRoleTest extends \PHPUnit_Framework_TestCase -{ - public function testGetSource() - { - $role = new SwitchUserRole('FOO', $token = $this->getMock('Symfony\Component\Security\Core\Authentication\Token\TokenInterface')); - - $this->assertSame($token, $role->getSource()); - } - - public function testGetRole() - { - $role = new SwitchUserRole('FOO', $this->getMock('Symfony\Component\Security\Core\Authentication\Token\TokenInterface')); - - $this->assertEquals('FOO', $role->getRole()); - } -} |