. **/ require_once __DIR__.'/../../include/CLegacyWebTest.php'; class testPageAdministrationGeneralIconMapping extends CLegacyWebTest { public function testPageAdministrationGeneralIconMapping_CheckLayout(){ $this->zbxTestLogin('zabbix.php?action=gui.edit'); $this->query('id:page-title-general')->asPopupButton()->one()->select('Icon mapping'); $this->zbxTestCheckHeader('Icon mapping'); $strings = []; foreach (CDBHelper::getAll('SELECT name FROM icon_map') as $iconname) { $strings[] = $iconname['name']; } foreach (CDBHelper::getAll('SELECT expression FROM icon_mapping') as $expression) { $strings[] = $expression['expression']; } $this->zbxTestTextPresent($strings); } }