Пример #1
0
 /**
  * Test we cannot create a competency framework with nasty data.
  */
 public function test_create_competency_frameworks_with_nasty_data()
 {
     $this->setUser($this->creator);
     $this->setExpectedException('invalid_parameter_exception');
     $framework = array('shortname' => 'short<a href="">', 'idnumber' => 'id;"number', 'description' => 'de<>\\..scription', 'descriptionformat' => FORMAT_HTML, 'scaleid' => 1, 'scaleconfiguration' => $this->scaleconfiguration1, 'visible' => true, 'contextid' => context_system::instance()->id);
     $result = external::create_competency_framework($framework);
 }