Skip to content

Commit

Permalink
[TEST] Fixed phpstan findings
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Jul 31, 2019
1 parent aacb5a1 commit b226643
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions tests/Block/Service/GDPRInformationBlockServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -20,6 +21,9 @@

final class GDPRInformationBlockServiceTest extends AbstractBlockServiceTestCase
{
/**
* @var MockObject|RequestStack
*/
private $requestStack;

/**
Expand Down
6 changes: 3 additions & 3 deletions tests/Core23GDPRBundleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

0 comments on commit b226643

Please sign in to comment.