Commit e2db6e53 authored by Adam G-H's avatar Adam G-H Committed by Rich Gerdes
Browse files

Issue #3288876: Automated Drupal 10 compatibility fixes

parent 72b36ce1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
  "type": "drupal-module",
  "description": "Creates OpenAPI specification for Drupal REST resources.",
  "keywords": ["Drupal"],
  "license": "GPL-2.0+",
  "license": "GPL-2.0-or-later",
  "homepage": "https://www.drupal.org/project/openapi_ui_swagger",
  "minimum-stability": "dev",
  "support": {
+1 −2
Original line number Diff line number Diff line
name: Swagger UI for OpenAPI UI
type: module
description: Provides display of OpenAPI docs using the Swagger UI plugin.
core: 8.x
core_version_requirement: '^8 || ^9'
core_version_requirement: ^8 || ^9 || ^10
package: OpenAPI
dependencies:
  - openapi_ui:openapi_ui
+26 −0
Original line number Diff line number Diff line
<?php

namespace Drupal\Tests\openapi_ui_swagger\Functional;

use Drupal\Tests\BrowserTestBase;

/**
 * Tests that openapi_ui_swagger can be installed.
 *
 * @group openapi_ui_swagger
 */
class InstallTest extends BrowserTestBase {

  /**
   * {@inheritdoc}
   */
  protected $defaultTheme = 'stark';

  /**
   * Tests installing openapi_ui_swagger programmatically.
   */
  public function testInstall(): void {
    $this->assertTrue($this->container->get('module_installer')->install(['openapi_ui_swagger']));
  }

}