Skip to content

Instantly share code, notes, and snippets.

@mschroeder223
Created May 16, 2014 16:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mschroeder223/9e17a2e0547f65b1e4e9 to your computer and use it in GitHub Desktop.
Save mschroeder223/9e17a2e0547f65b1e4e9 to your computer and use it in GitHub Desktop.
Group Test
<?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