Issue #2062247 by m1r1k, Garbar: Remove calls to deprecated global in core/modules/system/lib/Drupal/system/Tests/Entity/EntityTranslationTest.php.

8.0.x
webchick 2013-12-10 22:55:16 -08:00
parent 5dbebc7be3
commit 8c59a99310
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class EntityTranslationTest extends EntityLanguageTestBase {
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)));