[ticket/216] Do not try to set language if $lang is null in user mock

B3P-216
This commit is contained in:
Marc Alexander
2014-02-09 16:34:31 +01:00
parent 2909976697
commit 48ae4e63fb

View File

@@ -34,7 +34,10 @@ class user extends \PHPUnit_Framework_TestCase
{
include_once(dirname(__FILE__) . '/../../language/en/' . $file . '.php');
$this->set($lang);
if (isset($lang))
{
$this->set($lang);
}
}
else
{