Browse Source

Use a better version compare call.

pull/960/head
Rosie Le Faive 1 year ago
parent
commit
5c09a1e3f4
  1. 2
      tests/src/Functional/DeleteMediaTest.php

2
tests/src/Functional/DeleteMediaTest.php

@ -50,7 +50,7 @@ class DeleteMediaTest extends IslandoraFunctionalTestBase {
public function setUp(): void {
parent::setUp();
if (floatval(\Drupal::VERSION) >= 10.1) {
if (version_compare(\Drupal::VERSION, '10.1', '>=')){
$permissions = ['create media', 'delete any media', 'delete any files'];
} else {
$permissions = ['create media', 'delete any media'];

Loading…
Cancel
Save