Skip to content

Commit

Permalink
add missing call to parent::setUp() on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
WengerK committed Mar 1, 2024
1 parent 48e8455 commit c3541d0
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- 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

### Added
- add Drupal GitlabCI
Expand Down
1 change: 1 addition & 0 deletions tests/src/Unit/Resolver/DailyResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class DailyResolverTest extends UnitTestCase {
* {@inheritdoc}
*/
public function setUp(): void {
parent::setUp();
$this->cacheTagsInvalidator = $this->createMock(CacheTagsInvalidatorInterface::class);

$this->state = $this->createMock(StateInterface::class);
Expand Down
1 change: 1 addition & 0 deletions tests/src/Unit/Resolver/HourlyResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class HourlyResolverTest extends UnitTestCase {
* {@inheritdoc}
*/
public function setUp(): void {
parent::setUp();
$this->cacheTagsInvalidator = $this->createMock(CacheTagsInvalidatorInterface::class);

$this->state = $this->createMock(StateInterface::class);
Expand Down
1 change: 1 addition & 0 deletions tests/src/Unit/Resolver/MidnightResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ final class MidnightResolverTest extends UnitTestCase {
* {@inheritdoc}
*/
public function setUp(): void {
parent::setUp();
$this->cacheTagsInvalidator = $this->createMock(CacheTagsInvalidatorInterface::class);

$this->state = $this->createMock(StateInterface::class);
Expand Down
1 change: 1 addition & 0 deletions tests/src/Unit/Resolver/MinutelyResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class MinutelyResolverTest extends UnitTestCase {
* {@inheritdoc}
*/
public function setUp(): void {
parent::setUp();
$this->cacheTagsInvalidator = $this->createMock(CacheTagsInvalidatorInterface::class);

$this->state = $this->createMock(StateInterface::class);
Expand Down
1 change: 1 addition & 0 deletions tests/src/Unit/Resolver/WeeklyResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class WeeklyResolverTest extends UnitTestCase {
* {@inheritdoc}
*/
public function setUp(): void {
parent::setUp();
$this->cacheTagsInvalidator = $this->createMock(CacheTagsInvalidatorInterface::class);

$this->state = $this->createMock(StateInterface::class);
Expand Down

0 comments on commit c3541d0

Please sign in to comment.