FormLabelTranslatorStrategyTest.php 732 B

12345678910111213141516171819202122232425
  1. <?php
  2. /*
  3. * This file is part of the Sonata Project 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\FormLabelTranslatorStrategy;
  12. class FormLabelTranslatorStrategyTest extends \PHPUnit_Framework_TestCase
  13. {
  14. public function testLabel()
  15. {
  16. $strategy = new FormLabelTranslatorStrategy();
  17. $this->assertSame('Isvalid', $strategy->getLabel('isValid', 'form', 'label'));
  18. $this->assertSame('Plainpassword', $strategy->getLabel('plainPassword', 'form', 'label'));
  19. }
  20. }