diff --git a/core/modules/filter/src/Tests/FilterSecurityTest.php b/core/modules/filter/src/Tests/FilterSecurityTest.php index 80bfc70..918c91f 100644 --- a/core/modules/filter/src/Tests/FilterSecurityTest.php +++ b/core/modules/filter/src/Tests/FilterSecurityTest.php @@ -75,7 +75,10 @@ function testDisableFilterModule() { $this->assertText('Filter: Testing filter', 'Testing filter output found.'); // Disable the text format entirely. - $this->drupalPostForm('admin/config/content/formats/manage/' . $format_id . '/disable', array(), t('Disable')); + $this->drupalGet('admin/config/content/formats'); + $this->clickLink('Disable', 2); + $this->drupalPostForm(NULL, [], 'Disable'); + $this->assertRaw(t('Disabled text format %format.', array('%format' => 'Test format'))); // Verify that the content is empty, because the text format does not exist. $this->drupalGet('node/' . $node->id());