0
0
Fork 0
mirror of https://github.com/getgrav/grav.git synced 2025-01-22 07:41:43 +00:00
getgrav_grav/tests/unit/Grav/Common/Language/LanguageCodesTest.php
2021-02-01 11:14:53 +02:00

27 lines
611 B
PHP

<?php
use Grav\Common\Language\LanguageCodes;
/**
* Class ParsedownTest
*/
class LanguageCodesTest extends \Codeception\TestCase\Test
{
public function testRtl(): void
{
self::assertSame(
'ltr',
LanguageCodes::getOrientation('en')
);
self::assertSame(
'rtl',
LanguageCodes::getOrientation('ar')
);
self::assertSame(
'rtl',
LanguageCodes::getOrientation('he')
);
self::assertTrue(LanguageCodes::isRtl('ar'));
self::assertFalse(LanguageCodes::isRtl('fr'));
}
}