diff --git a/composer.json b/composer.json index 76527d2..70f7525 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,8 @@ "webflo/drupal-core-require-dev": "^8.5", "phpro/grumphp": "0.11.4", "peridot-php/leo": "^1.6", - "openeuropa/task-runner": "^0.4" + "openeuropa/task-runner": "^0.4", + "phpspec/prophecy-phpunit": "^2.0" }, "repositories": [ { diff --git a/content_translation_access.info.yml b/content_translation_access.info.yml index f07bb29..6d73c79 100644 --- a/content_translation_access.info.yml +++ b/content_translation_access.info.yml @@ -1,6 +1,5 @@ type: module -core: 8.x -core_version_requirement: ^8 || ^9 +core_version_requirement: ^9 || ^10 name: Content translation access dependencies: - drupal:content_translation diff --git a/modules/content_translation_access_user/content_translation_access_user.info.yml b/modules/content_translation_access_user/content_translation_access_user.info.yml index db21d1b..bfdc6c1 100644 --- a/modules/content_translation_access_user/content_translation_access_user.info.yml +++ b/modules/content_translation_access_user/content_translation_access_user.info.yml @@ -1,4 +1,3 @@ type: module -core: 8.x -core_version_requirement: ^8 || ^9 +core_version_requirement: ^9 || ^10 name: Content translation success user diff --git a/tests/modules/content_translation_access_test/content_translation_access_test.info.yml b/tests/modules/content_translation_access_test/content_translation_access_test.info.yml index 966aa35..78834c8 100644 --- a/tests/modules/content_translation_access_test/content_translation_access_test.info.yml +++ b/tests/modules/content_translation_access_test/content_translation_access_test.info.yml @@ -1,4 +1,4 @@ name: Content translation access test package: Testing type: module -core: 8.x \ No newline at end of file +core_version_requirement: ^9 || ^10 diff --git a/tests/src/Kernel/ContentTranslationAccessKernelTestBase.php b/tests/src/Kernel/ContentTranslationAccessKernelTestBase.php index 577ea4f..da3023a 100644 --- a/tests/src/Kernel/ContentTranslationAccessKernelTestBase.php +++ b/tests/src/Kernel/ContentTranslationAccessKernelTestBase.php @@ -8,6 +8,7 @@ use Drupal\Core\Language\Language; use Drupal\Core\Language\LanguageManagerInterface; use Drupal\KernelTests\Core\Entity\EntityLanguageTestBase; +use Prophecy\PhpUnit\ProphecyTrait; /** * Base controller. @@ -16,6 +17,8 @@ */ class ContentTranslationAccessKernelTestBase extends EntityLanguageTestBase { + use ProphecyTrait; + /** * Modules to enable. *