LanguageCodesTest.php 547 B

123456789101112131415161718192021222324
  1. <?php
  2. use Grav\Common\Language\LanguageCodes;
  3. /**
  4. * Class ParsedownTest
  5. */
  6. class LanguageCodesTest extends \Codeception\TestCase\Test
  7. {
  8. public function testRtl()
  9. {
  10. $this->assertSame('ltr',
  11. LanguageCodes::getOrientation('en'));
  12. $this->assertSame('rtl',
  13. LanguageCodes::getOrientation('ar'));
  14. $this->assertSame('rtl',
  15. LanguageCodes::getOrientation('he'));
  16. $this->assertTrue(LanguageCodes::isRtl('ar'));
  17. $this->assertFalse(LanguageCodes::isRtl('fr'));
  18. }
  19. }