NoopLabelTranslatorStrategyTest.php 732 B

123456789101112131415161718192021222324
  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\AdminBundle\Tests\Translator;
  11. use Sonata\AdminBundle\Translator\NoopLabelTranslatorStrategy;
  12. class NoopLabelTranslatorStrategyTest extends \PHPUnit_Framework_TestCase
  13. {
  14. public function testLabel()
  15. {
  16. $strategy = new NoopLabelTranslatorStrategy;
  17. $this->assertEquals('isValid', $strategy->getLabel('isValid', 'form', 'label'));
  18. $this->assertEquals('isValid_SuperCool', $strategy->getLabel('isValid_SuperCool', 'form', 'label'));
  19. }
  20. }