Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kohkimakimoto committed Oct 28, 2014
1 parent d8e6cbc commit 5b808e7
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/Altax/Server/RoleTest.php
@@ -0,0 +1,20 @@
<?php
namespace Test\Altax\Server;

use Altax\Server\Role;

class RoleTest extends \PHPUnit_Framework_TestCase
{
public function setup()
{
$this->app = bootAltaxApplication();
}

public function testGetAndSet()
{
$role = new Role("web");
$role->setName("web2");
$this->assertEquals("web2", $role->getName());
$this->assertEquals("web2", $role);
}
}

0 comments on commit 5b808e7

Please sign in to comment.