mirror of
https://github.com/salesagility/SuiteCRM.git
synced 2024-12-23 04:48:03 +00:00
26aab7535d
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
32 lines
649 B
PHP
32 lines
649 B
PHP
<?php
|
|
|
|
use SuiteCRM\Test\SuitePHPUnitFrameworkTestCase;
|
|
|
|
class CurrentLanguageTest extends SuitePHPUnitFrameworkTestCase
|
|
{
|
|
/**
|
|
* @var \UnitTester
|
|
*/
|
|
protected $tester;
|
|
|
|
/**
|
|
* @var \SuiteCRM\Utility\CurrentLanguage $paths
|
|
*/
|
|
private static $language;
|
|
|
|
|
|
protected function setUp(): void
|
|
{
|
|
parent::setUp();
|
|
if (self::$language === null) {
|
|
self::$language = new \SuiteCRM\Utility\CurrentLanguage();
|
|
}
|
|
}
|
|
|
|
public function testGetCurrentLanguage(): void
|
|
{
|
|
$language = self::$language->getCurrentLanguage();
|
|
self::assertNotEmpty($language);
|
|
}
|
|
}
|