Created
May 16, 2014 16:38
-
-
Save mschroeder223/9e17a2e0547f65b1e4e9 to your computer and use it in GitHub Desktop.
Group Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Lionce\UserBundle\Entity\Group; | |
class GroupTest extends \PHPUnit_Framework_TestCase | |
{ | |
public $group; | |
public function setUp() | |
{ | |
$this->group = new Group(); | |
} | |
public function testSetGetDisplayName() | |
{ | |
//First Test that the default value is null | |
$this->assertNull($this->group->getDisplayName()); | |
//Set the value and make sure we get it back | |
$this->group->setDisplayName('Test Name'); | |
$this->assertEquals('Test Name', $this->group->getDisplayName()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment