createXMLDataSet(dirname(__FILE__) . '/fixtures/language_select.xml'); } protected function setUp() { parent::setUp(); $this->db = $this->new_dbal(); $this->common = new phpbb_functions_common_validate_data; } public function test_validate_lang_iso() { global $db; $db = $this->db; $this->common->validate_data_check(array( 'empty' => '', 'en' => 'en', 'cs' => 'cs', 'de' => 'de', ), array( 'empty' => array('language_iso_name'), 'en' => array('language_iso_name'), 'cs' => array('language_iso_name'), 'de' => array('language_iso_name'), ), array( 'empty' => array('WRONG_DATA'), 'en' => array(), 'cs' => array(), 'de' => array('WRONG_DATA'), )); } }