[ticket/212] Add missing schema data and improve user class for acp tests

B3P-212
This commit is contained in:
marc1706
2014-02-06 22:49:36 +01:00
parent 384b6bd610
commit fc78d5c5ed
9 changed files with 280 additions and 2318 deletions

View File

@@ -22,4 +22,23 @@ class user extends \PHPUnit_Framework_TestCase
$this->lang[$key] = $column;
}
}
public function add_lang_ext($ext, $file)
{
if ($ext != 'board3/portal')
{
return; // can't support other extensions
}
if (file_exists(dirname(__FILE__) . '/../../language/en/' . $file . '.php'))
{
include_once(dirname(__FILE__) . '/../../language/en/' . $file . '.php');
$this->set($lang);
}
else
{
$this->markTestIncomplete('Unable to include language file ' . $file);
}
}
}