comparison core/modules/media/tests/src/Kernel/MediaTest.php @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children 7a779792577d
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
1 <?php
2
3 namespace Drupal\Tests\media\Kernel;
4
5 use Drupal\media\Entity\Media;
6
7 /**
8 * Tests Media.
9 *
10 * @group media
11 */
12 class MediaTest extends MediaKernelTestBase {
13
14 /**
15 * Tests various aspects of a Media entity.
16 */
17 public function testEntity() {
18 $media = Media::create(['bundle' => $this->testMediaType->id()]);
19
20 $this->assertSame($media, $media->setOwnerId($this->user->id()), 'setOwnerId() method returns its own entity.');
21 }
22
23 }