Mercurial > hg > isophonics-drupal-site
comparison core/modules/media/tests/src/Kernel/MediaTest.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 129ea1e6d783 |
children |
comparison
equal
deleted
inserted
replaced
17:129ea1e6d783 | 18:af1871eacc83 |
---|---|
32 $this->assertTrue($field_definitions['name']->isDisplayConfigurable('view')); | 32 $this->assertTrue($field_definitions['name']->isDisplayConfigurable('view')); |
33 // Ensure it is not visible by default. | 33 // Ensure it is not visible by default. |
34 $this->assertSame($field_definitions['name']->getDisplayOptions('view'), ['region' => 'hidden']); | 34 $this->assertSame($field_definitions['name']->getDisplayOptions('view'), ['region' => 'hidden']); |
35 } | 35 } |
36 | 36 |
37 /** | |
38 * Tests the legacy method used as the default entity owner. | |
39 * | |
40 * @group legacy | |
41 * @expectedDeprecation The ::getCurrentUserId method is deprecated in 8.6.x and will be removed before 9.0.0. | |
42 */ | |
43 public function testGetCurrentUserId() { | |
44 $this->assertEquals(['1'], Media::getCurrentUserId()); | |
45 } | |
46 | |
37 } | 47 } |