diff --git a/core/modules/system/lib/Drupal/system/Tests/Module/ModuleEnable.php b/core/modules/system/lib/Drupal/system/Tests/Module/ModuleEnable.php index 182294d..deec030 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Module/ModuleEnable.php +++ b/core/modules/system/lib/Drupal/system/Tests/Module/ModuleEnable.php @@ -52,7 +52,7 @@ function testModuleNameLength() { $module_name = 'invalid_module_name_over_the_maximum_allowed_character_length'; $message = format_string('Exception thrown when enabling module %name with a name length over the allowed maximum', array('%name' => $module_name)); try { - $this->container('module_handler')->enable(array($module_name)); + $this->container->get('module_handler')->enable(array($module_name)); $this->fail($message); } catch (ExtensionNameLengthException $e) { @@ -62,7 +62,7 @@ function testModuleNameLength() { // Since for the UI, the submit callback uses FALSE, test that too. $message = format_string('Exception thrown when enabling as if via the UI the module %name with a name length over the allowed maximum', array('%name' => $module_name)); try { - $this->container('module_handler')->enable(array($module_name), FALSE); + $this->container->get('module_handler')->enable(array($module_name), FALSE); $this->fail($message); } catch (ExtensionNameLengthException $e) {