$uri = 'temporary://foo.txt';
file_put_contents($uri, $this->randomString(128));
+ $this->createMediaType(['bundle' => 'file', 'new_revision' => TRUE], 'file');
+
// Create a media item.
$this->drupalGet('/media/add/file');
$page = $this->getSession()->getPage();
public function testImageMediaRevision() {
$assert = $this->assertSession();
+ $this->createMediaType(['bundle' => 'image', 'new_revision' => TRUE], 'image');
+
/** @var \Drupal\field\FieldConfigInterface $field */
// Disable the alt text field, because this is not a JavaScript test and
// the alt text field will therefore not appear without a full page refresh.