Skip to content

Commit

Permalink
fix deprecation creation of dynamic property
Browse files Browse the repository at this point in the history
  • Loading branch information
WengerK committed Mar 1, 2024
1 parent c3541d0 commit 2819f7c
Show file tree
Hide file tree
Showing 6 changed files with 176 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
35 changes: 35 additions & 0 deletions tests/src/Unit/Resolver/DailyResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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}
*/
Expand Down
35 changes: 35 additions & 0 deletions tests/src/Unit/Resolver/HourlyResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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}
*/
Expand Down
35 changes: 35 additions & 0 deletions tests/src/Unit/Resolver/MidnightResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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}
*/
Expand Down
35 changes: 35 additions & 0 deletions tests/src/Unit/Resolver/MinutelyResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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}
*/
Expand Down
35 changes: 35 additions & 0 deletions tests/src/Unit/Resolver/WeeklyResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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}
*/
Expand Down

0 comments on commit 2819f7c

Please sign in to comment.