From b226643346aacce17714c71db958b7473f290e38 Mon Sep 17 00:00:00 2001 From: core23 Date: Tue, 30 Jul 2019 18:46:21 +0200 Subject: [PATCH] [TEST] Fixed phpstan findings --- tests/Block/Service/GDPRInformationBlockServiceTest.php | 4 ++++ tests/Core23GDPRBundleTest.php | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/Block/Service/GDPRInformationBlockServiceTest.php b/tests/Block/Service/GDPRInformationBlockServiceTest.php index bb10bca6..2b39a066 100644 --- a/tests/Block/Service/GDPRInformationBlockServiceTest.php +++ b/tests/Block/Service/GDPRInformationBlockServiceTest.php @@ -10,6 +10,7 @@ namespace Core23\GDPRBundle\Tests\Block\Service; use Core23\GDPRBundle\Block\Service\GDPRInformationBlockService; +use PHPUnit\Framework\MockObject\MockObject; use Sonata\AdminBundle\Form\FormMapper; use Sonata\BlockBundle\Block\BlockContext; use Sonata\BlockBundle\Model\Block; @@ -20,6 +21,9 @@ final class GDPRInformationBlockServiceTest extends AbstractBlockServiceTestCase { + /** + * @var MockObject|RequestStack + */ private $requestStack; /** diff --git a/tests/Core23GDPRBundleTest.php b/tests/Core23GDPRBundleTest.php index b6e11635..ad296734 100644 --- a/tests/Core23GDPRBundleTest.php +++ b/tests/Core23GDPRBundleTest.php @@ -10,15 +10,15 @@ namespace Core23\GDPRBundle\Tests; use Core23\GDPRBundle\Core23GDPRBundle; +use Core23\GDPRBundle\DependencyInjection\Core23GDPRExtension; use PHPUnit\Framework\TestCase; -use Symfony\Component\HttpKernel\Bundle\BundleInterface; final class Core23GDPRBundleTest extends TestCase { - public function testItIsInstantiable(): void + public function testGetContainerExtension(): void { $bundle = new Core23GDPRBundle(); - static::assertInstanceOf(BundleInterface::class, $bundle); + static::assertInstanceOf(Core23GDPRExtension::class, $bundle->getContainerExtension()); } }