Skip to content

Commit 7d15b1d

Browse files
authored
[LangTest]
1 parent f503f27 commit 7d15b1d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/LangTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
use PHPUnit\Framework\TestCase;
3+
use JewishPulse\Locales\Lang;
4+
5+
class LangTest extends TestCase
6+
{
7+
public function testDefaultLangIsHebrew()
8+
{
9+
$contextMock = $this->createMock(stdClass::class);
10+
$lang = new Lang($contextMock);
11+
$this->assertEquals('he', $lang->getUserLang(999999));
12+
}
13+
}

0 commit comments

Comments
 (0)