diff --git a/og_ui/tests/src/Functional/BundleFormAlterTest.php b/og_ui/tests/src/Functional/BundleFormAlterTest.php index ae511a782..1e251ad9f 100644 --- a/og_ui/tests/src/Functional/BundleFormAlterTest.php +++ b/og_ui/tests/src/Functional/BundleFormAlterTest.php @@ -82,7 +82,7 @@ public function testCreate() { $this->drupalGet('admin/structure/types/add'); $this->submitForm($edit, new TranslatableMarkup('Save content type')); $this->content = $this->drupalGet('admin/structure/types/manage/class'); - $this->assertOptionSelected('edit-og-target-bundles', 'school'); + $this->assertTrue($this->assertSession()->optionExists('edit-og-target-bundles', 'school')->isSelected()); $this->assertTargetType('block_content', 'The target type is set to the "Custom Block" entity type.'); $this->assertTargetBundles(['school' => 'school'], 'The target bundles are set to the "school" bundle.');