Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / options / tests / src / Functional / OptionsSelectDynamicValuesTest.php
index b661c0d53625357ee6e1985f60186d3d4924cae4..0fb357be04b7d2d1ed1d7031c5e755d9199df6e0 100644 (file)
@@ -8,6 +8,7 @@ namespace Drupal\Tests\options\Functional;
  * @group options
  */
 class OptionsSelectDynamicValuesTest extends OptionsDynamicValuesTestBase {
+
   /**
    * Tests the 'options_select' widget (single select).
    */
@@ -24,7 +25,7 @@ class OptionsSelectDynamicValuesTest extends OptionsDynamicValuesTestBase {
     $options = $this->xpath('//select[@id="edit-test-options"]/option');
     $this->assertEqual(count($options), count($this->test) + 1);
     foreach ($options as $option) {
-      $value = (string) $option['value'];
+      $value = $option->getValue();
       if ($value != '_none') {
         $this->assertTrue(array_search($value, $this->test));
       }