Skip to content

Commit

Permalink
IBX-8019: Used union instead of intersection types on MockObjects
Browse files Browse the repository at this point in the history
  • Loading branch information
webhdx committed Jun 3, 2024
1 parent cc8e8ef commit 91e663d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ abstract class AbstractRepositoryEventSubscriberTest extends AbstractCoreEventSu
/** @var \PHPUnit\Framework\MockObject\MockObject|\eZ\Publish\API\Repository\LocationService */
protected $locationServiceMock;

/** @var \PHPUnit\Framework\MockObject\MockObject|\EzSystems\EzRecommendationClient\Helper\LocationHelper */
/** @var \PHPUnit\Framework\MockObject\MockObject&\EzSystems\EzRecommendationClient\Helper\LocationHelper */
protected $locationHelperMock;

Check failure on line 27 in tests/lib/Event/Subscriber/AbstractRepositoryEventSubscriberTest.php

View workflow job for this annotation

GitHub Actions / Tests (7.4)

PHPDoc tag @var for property EzSystems\EzRecommendationClient\Tests\Event\Subscriber\AbstractRepositoryEventSubscriberTest::$locationHelperMock contains unresolvable type.

Check failure on line 27 in tests/lib/Event/Subscriber/AbstractRepositoryEventSubscriberTest.php

View workflow job for this annotation

GitHub Actions / Tests (7.3)

PHPDoc tag @var for property EzSystems\EzRecommendationClient\Tests\Event\Subscriber\AbstractRepositoryEventSubscriberTest::$locationHelperMock contains unresolvable type.

Check failure on line 27 in tests/lib/Event/Subscriber/AbstractRepositoryEventSubscriberTest.php

View workflow job for this annotation

GitHub Actions / Tests (8.1)

PHPDoc tag @var for property EzSystems\EzRecommendationClient\Tests\Event\Subscriber\AbstractRepositoryEventSubscriberTest::$locationHelperMock contains unresolvable type.

/** @var \PHPUnit\Framework\MockObject\MockObject|\EzSystems\EzRecommendationClient\Helper\ContentHelper */
/** @var \PHPUnit\Framework\MockObject\MockObject&\EzSystems\EzRecommendationClient\Helper\ContentHelper */
protected $contentHelperMock;

Check failure on line 30 in tests/lib/Event/Subscriber/AbstractRepositoryEventSubscriberTest.php

View workflow job for this annotation

GitHub Actions / Tests (7.4)

PHPDoc tag @var for property EzSystems\EzRecommendationClient\Tests\Event\Subscriber\AbstractRepositoryEventSubscriberTest::$contentHelperMock contains unresolvable type.

Check failure on line 30 in tests/lib/Event/Subscriber/AbstractRepositoryEventSubscriberTest.php

View workflow job for this annotation

GitHub Actions / Tests (7.3)

PHPDoc tag @var for property EzSystems\EzRecommendationClient\Tests\Event\Subscriber\AbstractRepositoryEventSubscriberTest::$contentHelperMock contains unresolvable type.

Check failure on line 30 in tests/lib/Event/Subscriber/AbstractRepositoryEventSubscriberTest.php

View workflow job for this annotation

GitHub Actions / Tests (8.1)

PHPDoc tag @var for property EzSystems\EzRecommendationClient\Tests\Event\Subscriber\AbstractRepositoryEventSubscriberTest::$contentHelperMock contains unresolvable type.

/** @var \PHPUnit\Framework\MockObject\MockObject|\eZ\Publish\Core\Query\QueryFactoryInterface */
/** @var \PHPUnit\Framework\MockObject\MockObject&\eZ\Publish\Core\Query\QueryFactoryInterface */
protected $queryFactoryMock;

/** @var \PHPUnit\Framework\MockObject\MockObject|\eZ\Publish\API\Repository\SearchService */
/** @var \PHPUnit\Framework\MockObject\MockObject&\eZ\Publish\API\Repository\SearchService */
protected $searchServiceMock;

public function setUp(): void
Expand Down

0 comments on commit 91e663d

Please sign in to comment.