diff -u b/core/tests/Drupal/FunctionalJavascriptTests/Core/Form/JavascriptStatesTest.php b/core/tests/Drupal/FunctionalJavascriptTests/Core/Form/JavascriptStatesTest.php --- b/core/tests/Drupal/FunctionalJavascriptTests/Core/Form/JavascriptStatesTest.php +++ b/core/tests/Drupal/FunctionalJavascriptTests/Core/Form/JavascriptStatesTest.php @@ -28,20 +28,18 @@ protected function setUp():void { parent::setUp(); // Add text formats. - $filtered_html_format = FilterFormat::create([ + FilterFormat::create([ 'format' => 'filtered_html', 'name' => 'Filtered HTML', 'weight' => 0, 'filters' => [], - ]); - $filtered_html_format->save(); - $full_html_format = FilterFormat::create([ + ])->save(); + FilterFormat::create([ 'format' => 'full_html', 'name' => 'Full HTML', 'weight' => 1, 'filters' => [], - ]); - $full_html_format->save(); + ])->save(); $normal_user = $this->drupalCreateUser([ 'use text format filtered_html', 'use text format full_html',