diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..c86d066 --- /dev/null +++ b/composer.json @@ -0,0 +1,8 @@ +{ + "name": "drupal/views_cm_current_state", + "description": "Views Content Moderation Current State", + "type": "drupal-module", + "require": { + "drupal/core": "^9 || ^10" + } +} diff --git a/tests/src/Functional/LoadTest.php b/tests/src/Functional/LoadTest.php index 136a5f4..a5f7b88 100644 --- a/tests/src/Functional/LoadTest.php +++ b/tests/src/Functional/LoadTest.php @@ -17,7 +17,12 @@ class LoadTest extends BrowserTestBase { * * @var array */ - public static $modules = ['views_cm_current_state']; + protected static $modules = ['views_cm_current_state']; + + /** + * {@inheritdoc} + */ + protected $defaultTheme = 'stark'; /** * A user with permission to administer site configuration. @@ -29,7 +34,7 @@ class LoadTest extends BrowserTestBase { /** * {@inheritdoc} */ - protected function setUp() { + protected function setUp(): void { parent::setUp(); $this->user = $this->drupalCreateUser(['administer site configuration']); $this->drupalLogin($this->user); diff --git a/views_cm_current_state.info.yml b/views_cm_current_state.info.yml index 563ac21..311af3a 100644 --- a/views_cm_current_state.info.yml +++ b/views_cm_current_state.info.yml @@ -1,8 +1,7 @@ name: 'Views content moderation current state' type: module description: 'This module provides the views field, to get the current state of the content from content moderation.' -core: 8.x -core_version_requirement: ^8 || ^9 +core_version_requirement: ^8 || ^9 || ^10 package: 'views' dependencies: - drupal:views