Beispiel #1
0
 public function test_langpack_removed_validation()
 {
     $this->setExpectedException('coding_exception', 'The \'langcode\' value must be set to a valid language code');
     \tool_langimport\event\langpack_removed::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_removed_validation()
 {
     \tool_langimport\event\langpack_removed::event_with_langcode('broken langcode');
 }