From 2819f7c3fda678c6cf20b61da424a7aa4fc57495 Mon Sep 17 00:00:00 2001 From: Kevin Wenger Date: Fri, 1 Mar 2024 12:22:22 +0100 Subject: [PATCH] fix deprecation creation of dynamic property --- CHANGELOG.md | 1 + tests/src/Unit/Resolver/DailyResolverTest.php | 35 +++++++++++++++++++ .../src/Unit/Resolver/HourlyResolverTest.php | 35 +++++++++++++++++++ .../Unit/Resolver/MidnightResolverTest.php | 35 +++++++++++++++++++ .../Unit/Resolver/MinutelyResolverTest.php | 35 +++++++++++++++++++ .../src/Unit/Resolver/WeeklyResolverTest.php | 35 +++++++++++++++++++ 6 files changed, 176 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 29c3c16..a265a74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - fix usage of deprecated getMockBuilder by createMock - fix phpcs use statements should be sorted alphabetically - Issue #3373568 by nitin_lama, roshni27, aayushmankotia, Satish_kumar, wengerk - add missing call to parent::setUp() on tests +- fix deprecation creation of dynamic property ### Added - add Drupal GitlabCI diff --git a/tests/src/Unit/Resolver/DailyResolverTest.php b/tests/src/Unit/Resolver/DailyResolverTest.php index afe9f0f..93a9bdf 100644 --- a/tests/src/Unit/Resolver/DailyResolverTest.php +++ b/tests/src/Unit/Resolver/DailyResolverTest.php @@ -26,6 +26,41 @@ class DailyResolverTest extends UnitTestCase { */ protected $resolver; + /** + * The cache tags invalidator. + * + * @var \Drupal\Core\Cache\CacheTagsInvalidatorInterface + */ + protected $cacheTagsInvalidator; + + /** + * The state service. + * + * @var \Drupal\Core\State\StateInterface + */ + protected $state; + + /** + * The logger. + * + * @var \Psr\Log\LoggerInterface + */ + protected $logger; + + /** + * The logger channel factory service. + * + * @var \Drupal\Core\Logger\LoggerChannelFactoryInterface + */ + protected $loggerFactory; + + /** + * The time service. + * + * @var \Drupal\Component\Datetime\TimeInterface + */ + protected $time; + /** * {@inheritdoc} */ diff --git a/tests/src/Unit/Resolver/HourlyResolverTest.php b/tests/src/Unit/Resolver/HourlyResolverTest.php index c2b6d49..63ab9a5 100644 --- a/tests/src/Unit/Resolver/HourlyResolverTest.php +++ b/tests/src/Unit/Resolver/HourlyResolverTest.php @@ -26,6 +26,41 @@ class HourlyResolverTest extends UnitTestCase { */ protected $resolver; + /** + * The cache tags invalidator. + * + * @var \Drupal\Core\Cache\CacheTagsInvalidatorInterface + */ + protected $cacheTagsInvalidator; + + /** + * The state service. + * + * @var \Drupal\Core\State\StateInterface + */ + protected $state; + + /** + * The logger. + * + * @var \Psr\Log\LoggerInterface + */ + protected $logger; + + /** + * The logger channel factory service. + * + * @var \Drupal\Core\Logger\LoggerChannelFactoryInterface + */ + protected $loggerFactory; + + /** + * The time service. + * + * @var \Drupal\Component\Datetime\TimeInterface + */ + protected $time; + /** * {@inheritdoc} */ diff --git a/tests/src/Unit/Resolver/MidnightResolverTest.php b/tests/src/Unit/Resolver/MidnightResolverTest.php index 0f6a0aa..93b2423 100644 --- a/tests/src/Unit/Resolver/MidnightResolverTest.php +++ b/tests/src/Unit/Resolver/MidnightResolverTest.php @@ -27,6 +27,41 @@ final class MidnightResolverTest extends UnitTestCase { */ protected $resolver; + /** + * The cache tags invalidator. + * + * @var \Drupal\Core\Cache\CacheTagsInvalidatorInterface + */ + protected $cacheTagsInvalidator; + + /** + * The state service. + * + * @var \Drupal\Core\State\StateInterface + */ + protected $state; + + /** + * The logger. + * + * @var \Psr\Log\LoggerInterface + */ + protected $logger; + + /** + * The logger channel factory service. + * + * @var \Drupal\Core\Logger\LoggerChannelFactoryInterface + */ + protected $loggerFactory; + + /** + * The time service. + * + * @var \Drupal\Component\Datetime\TimeInterface + */ + protected $time; + /** * {@inheritdoc} */ diff --git a/tests/src/Unit/Resolver/MinutelyResolverTest.php b/tests/src/Unit/Resolver/MinutelyResolverTest.php index 7cc1214..a766e3a 100644 --- a/tests/src/Unit/Resolver/MinutelyResolverTest.php +++ b/tests/src/Unit/Resolver/MinutelyResolverTest.php @@ -26,6 +26,41 @@ class MinutelyResolverTest extends UnitTestCase { */ protected $resolver; + /** + * The cache tags invalidator. + * + * @var \Drupal\Core\Cache\CacheTagsInvalidatorInterface + */ + protected $cacheTagsInvalidator; + + /** + * The state service. + * + * @var \Drupal\Core\State\StateInterface + */ + protected $state; + + /** + * The logger. + * + * @var \Psr\Log\LoggerInterface + */ + protected $logger; + + /** + * The logger channel factory service. + * + * @var \Drupal\Core\Logger\LoggerChannelFactoryInterface + */ + protected $loggerFactory; + + /** + * The time service. + * + * @var \Drupal\Component\Datetime\TimeInterface + */ + protected $time; + /** * {@inheritdoc} */ diff --git a/tests/src/Unit/Resolver/WeeklyResolverTest.php b/tests/src/Unit/Resolver/WeeklyResolverTest.php index 5c592d7..70be6e4 100644 --- a/tests/src/Unit/Resolver/WeeklyResolverTest.php +++ b/tests/src/Unit/Resolver/WeeklyResolverTest.php @@ -26,6 +26,41 @@ class WeeklyResolverTest extends UnitTestCase { */ protected $resolver; + /** + * The cache tags invalidator. + * + * @var \Drupal\Core\Cache\CacheTagsInvalidatorInterface + */ + protected $cacheTagsInvalidator; + + /** + * The state service. + * + * @var \Drupal\Core\State\StateInterface + */ + protected $state; + + /** + * The logger. + * + * @var \Psr\Log\LoggerInterface + */ + protected $logger; + + /** + * The logger channel factory service. + * + * @var \Drupal\Core\Logger\LoggerChannelFactoryInterface + */ + protected $loggerFactory; + + /** + * The time service. + * + * @var \Drupal\Component\Datetime\TimeInterface + */ + protected $time; + /** * {@inheritdoc} */