[ticket/216] Do not try to set language if $lang is null in user mock
B3P-216
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user