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'); }
/** * @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'); }