Beispiel #1
0
 public function test_langpack_updated_validation()
 {
     $this->setExpectedException('coding_exception', 'The \'langcode\' value must be set to a valid language code');
     \tool_langimport\event\langpack_updated::event_with_langcode('broken langcode');
 }
Beispiel #2
0
 /**
  * @expectedException        coding_exception
  * @expectedExceptionMessage The 'langcode' value must be set to a valid language code
  */
 public function test_langpack_updated_validation()
 {
     \tool_langimport\event\langpack_updated::event_with_langcode('broken langcode');
 }