Commit 8c59a993 authored by webchick's avatar webchick

Issue #2062247 by m1r1k, Garbar: Remove calls to deprecated global in...

Issue #2062247 by m1r1k, Garbar: Remove calls to deprecated global  in core/modules/system/lib/Drupal/system/Tests/Entity/EntityTranslationTest.php.
parent 5dbebc7b
......@@ -43,7 +43,7 @@ public function testEntityLanguageMethods() {
protected function _testEntityLanguageMethods($entity_type) {
$entity = entity_create($entity_type, array(
'name' => 'test',
'user_id' => $GLOBALS['user']->id(),
'user_id' => $this->container->get('current_user')->id(),
));
$this->assertEqual($entity->language()->id, Language::LANGCODE_NOT_SPECIFIED, format_string('%entity_type: Entity language not specified.', array('%entity_type' => $entity_type)));
$this->assertFalse($entity->getTranslationLanguages(FALSE), format_string('%entity_type: No translations are available', array('%entity_type' => $entity_type)));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment