Browse Source

In Drupal 10.1, include new file delete permission.

pull/960/head
Rosie Le Faive 1 year ago
parent
commit
6d59c526d3
  1. 8
      tests/src/Functional/DeleteMediaTest.php

8
tests/src/Functional/DeleteMediaTest.php

@ -50,8 +50,14 @@ class DeleteMediaTest extends IslandoraFunctionalTestBase {
public function setUp(): void {
parent::setUp();
if (floatval(\Drupal::VERSION) >= 10.1) {
$permissions = ['create media', 'delete any media', 'delete any files'];
} else {
$permissions = ['create media', 'delete any media'];
}
// Create a test user.
$this->account = $this->createUser(['create media', 'delete any media']);
$this->account = $this->createUser($permissions);
list($this->file, $this->media) = $this->makeMediaAndFile($this->account);
}

Loading…
Cancel
Save