diff --git a/composer/Generator/Builder/DrupalDevDependenciesBuilder.php b/composer/Generator/Builder/DrupalDevDependenciesBuilder.php index 13ad1dc220c..558657c0f04 100644 --- a/composer/Generator/Builder/DrupalDevDependenciesBuilder.php +++ b/composer/Generator/Builder/DrupalDevDependenciesBuilder.php @@ -46,7 +46,7 @@ protected function initialPackageMetadata() { ], "repositories" => [ "type" => "vcs", - "url" => "https://github.com/mdlutz24/MinkBrowserKitDriver.git" + "url" => "https://github.com/mdlutz24/MinkBrowserKitDriver.git", ], ]; } diff --git a/core/modules/layout_builder/tests/src/Unit/SectionComponentTest.php b/core/modules/layout_builder/tests/src/Unit/SectionComponentTest.php index 07364d9ad92..e50fe65e358 100644 --- a/core/modules/layout_builder/tests/src/Unit/SectionComponentTest.php +++ b/core/modules/layout_builder/tests/src/Unit/SectionComponentTest.php @@ -39,7 +39,7 @@ public function testToRenderArray() { /** @var \Drupal\layout_builder\Event\SectionComponentBuildRenderArrayEvent $event */ $event = $args[0]; $event->setBuild(['#markup' => $event->getPlugin()->getPluginId()]); - return; + return $event; }); $layout_plugin = $this->prophesize(LayoutInterface::class); diff --git a/core/tests/Drupal/Tests/Component/EventDispatcher/ContainerAwareEventDispatcherTest.php b/core/tests/Drupal/Tests/Component/EventDispatcher/ContainerAwareEventDispatcherTest.php index 89f8f6e8673..138d8574680 100644 --- a/core/tests/Drupal/Tests/Component/EventDispatcher/ContainerAwareEventDispatcherTest.php +++ b/core/tests/Drupal/Tests/Component/EventDispatcher/ContainerAwareEventDispatcherTest.php @@ -143,6 +143,8 @@ public function testGetListenersWithServices() { /** * Tests dispatching Symfony events with core's event dispatcher. + * + * @doesNotPerformAssertions */ public function testSymfonyEventDispatching() { $container = new ContainerBuilder(); diff --git a/core/tests/Drupal/Tests/Core/File/MimeTypeGuesserTest.php b/core/tests/Drupal/Tests/Core/File/MimeTypeGuesserTest.php deleted file mode 100644 index b7222892d8b..00000000000 --- a/core/tests/Drupal/Tests/Core/File/MimeTypeGuesserTest.php +++ /dev/null @@ -1,54 +0,0 @@ -setAccessible(TRUE); - $guessers = $reflected_guessers->getValue($symfony_guesser); - if (count($guessers)) { - $this->assertNotInstanceOf('Drupal\Core\File\MimeType\MimeTypeGuesser', $guessers[0]); - } - $container = new ContainerBuilder(); - $container->set('file.mime_type.guesser', new MimeTypeGuesser(new StreamWrapperManager())); - MimeTypeGuesser::registerWithSymfonyGuesser($container); - $symfony_guesser = SymfonyMimeTypeGuesser::getInstance(); - $guessers = $reflected_guessers->getValue($symfony_guesser); - $this->assertSame($container->get('file.mime_type.guesser'), $guessers[0]); - $this->assertInstanceOf('Drupal\Core\File\MimeType\MimeTypeGuesser', $guessers[0]); - $count = count($guessers); - - $container = new ContainerBuilder(); - $container->set('file.mime_type.guesser', new MimeTypeGuesser(new StreamWrapperManager())); - MimeTypeGuesser::registerWithSymfonyGuesser($container); - $symfony_guesser = SymfonyMimeTypeGuesser::getInstance(); - $guessers = $reflected_guessers->getValue($symfony_guesser); - $this->assertSame($container->get('file.mime_type.guesser'), $guessers[0]); - $this->assertInstanceOf('Drupal\Core\File\MimeType\MimeTypeGuesser', $guessers[0]); - $new_count = count($guessers); - $this->assertEquals($count, $new_count, 'The count of mime type guessers remains the same after container re-init.'); - } - -} diff --git a/core/tests/Drupal/Tests/Listeners/DeprecationListenerTrait.php b/core/tests/Drupal/Tests/Listeners/DeprecationListenerTrait.php index f002e9f1907..9b21589a28f 100644 --- a/core/tests/Drupal/Tests/Listeners/DeprecationListenerTrait.php +++ b/core/tests/Drupal/Tests/Listeners/DeprecationListenerTrait.php @@ -137,7 +137,9 @@ public static function getSkippedDeprecations() { 'Since symfony/dependency-injection 5.1: The signature of method "Symfony\Component\DependencyInjection\Alias::setDeprecated()" requires 3 arguments: "string $package, string $version, string $message", not defining them is deprecated.', 'Since symfony/dependency-injection 5.1: The signature of method "Symfony\Component\DependencyInjection\Definition::setDeprecated()" requires 3 arguments: "string $package, string $version, string $message", not defining them is deprecated.', 'Since symfony/http-foundation 5.1: Retrieving a non-string value from "Symfony\Component\HttpFoundation\InputBag::get()" is deprecated, and will throw a "Symfony\Component\HttpFoundation\Exception\BadRequestException" exception in Symfony 6.0, use "Symfony\Component\HttpFoundation\InputBag::all($key)" instead.', - ]; + 'Since symfony/http-foundation 5.1: Passing a non-string value as 2nd argument to "Symfony\Component\HttpFoundation\InputBag::get()" is deprecated, pass a string or null instead.', + 'Since symfony/yaml 5.1: Support for parsing numbers prefixed with 0 as octal numbers. They will be parsed as strings as of 6.0.', + ]; } /**