BaseGroupTest.php 672 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /*
  3. * This file is part of the Sonata package.
  4. *
  5. * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Sonata\UserBundle\Tests\Document;
  11. use Sonata\UserBundle\Document\BaseGroup;
  12. class BaseGroupTest extends \PHPUnit_Framework_TestCase
  13. {
  14. public function testToString()
  15. {
  16. // Given
  17. $group = new BaseGroup('Group');
  18. // When
  19. $string = (string)$group;
  20. // Then
  21. $this->assertEquals('Group', $string, 'Should return the group name as string representation');
  22. }
  23. }