diff -u b/core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php b/core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php --- b/core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php +++ b/core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php @@ -105,10 +105,6 @@ $this->drupalPostForm('form-test/object-builder', NULL, 'Save'); $value = $config_factory->get('form_test.object')->get('bananas'); $this->assertSame('', $value); - - // Test \Drupal\FunctionalTests\AssertLegacyTrait::getAllOptions. - $this->drupalGet('/form-test/select'); - $this->assertCount(6, $this->getAllOptions($this->cssSelect('select[name="opt_groups"]')[0])); } /** @@ -432,6 +428,10 @@ catch (\PHPUnit_Framework_ExpectationFailedException $e) { $this->pass($e->getMessage()); } + + // Test \Drupal\FunctionalTests\AssertLegacyTrait::getAllOptions. + $this->drupalGet('/form-test/select'); + $this->assertCount(6, $this->getAllOptions($this->cssSelect('select[name="opt_groups"]')[0])); } /**