Commit d37c9dfc authored by catch's avatar catch
Browse files

Issue #3556717 by alexpott, dcam: Fix \Drupal\Tests\media\Kernel\MediaSourceTest on PHP 8.5

(cherry picked from commit b9a6a354)
parent 23eb4f86
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -658,7 +658,7 @@ public function testHiddenSourceField(): void {
   */
  protected function createMediaTypeViaForm($source_plugin_id, $field_name): void {
    /** @var \Drupal\media\MediaTypeInterface $type */
    $type = MediaType::create(['source' => $source_plugin_id]);
    $type = MediaType::create(['source' => $source_plugin_id, 'id' => 'test_media_type']);

    $form = $this->container->get('entity_type.manager')
      ->getFormObject('media_type', 'add')