Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / filter / tests / src / Functional / FilterFormatAccessTest.php
similarity index 98%
rename from web/core/modules/filter/src/Tests/FilterFormatAccessTest.php
rename to web/core/modules/filter/tests/src/Functional/FilterFormatAccessTest.php
index a4c23b2d5531abb75edd418f3b924171a159e196..8c3394bdbf8afef79badc185cb7a36bfcc0950db 100644 (file)
@@ -1,11 +1,11 @@
 <?php
 
-namespace Drupal\filter\Tests;
+namespace Drupal\Tests\filter\Functional;
 
 use Drupal\Component\Utility\Unicode;
 use Drupal\Core\Access\AccessResult;
 use Drupal\filter\Entity\FilterFormat;
-use Drupal\simpletest\WebTestBase;
+use Drupal\Tests\BrowserTestBase;
 
 /**
  * Tests access to text formats.
@@ -13,7 +13,7 @@ use Drupal\simpletest\WebTestBase;
  * @group Access
  * @group filter
  */
-class FilterFormatAccessTest extends WebTestBase {
+class FilterFormatAccessTest extends BrowserTestBase {
 
   /**
    * Modules to enable.
@@ -151,7 +151,7 @@ class FilterFormatAccessTest extends WebTestBase {
     ]);
     $options = [];
     foreach ($elements as $element) {
-      $options[(string) $element['value']] = $element;
+      $options[$element->getValue()] = $element;
     }
     $this->assertTrue(isset($options[$this->allowedFormat->id()]), 'The allowed text format appears as an option when adding a new node.');
     $this->assertFalse(isset($options[$this->disallowedFormat->id()]), 'The disallowed text format does not appear as an option when adding a new node.');