Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
fre5h committed Dec 6, 2019
1 parent dc161c4 commit fea39f3
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@
* file that was distributed with this source code.
*/


declare(strict_types=1);

namespace StfalconStudio\DoctrineRedisCacheBundle\Tests\DependencyInjection;

use Doctrine\DBAL\Migrations\Finder\MigrationFinderInterface;
use Doctrine\Migrations\Finder\MigrationFinder;
use PHPUnit\Framework\TestCase;
use StfalconStudio\DoctrineRedisCacheBundle\DependencyInjection\StfalconStudioDoctrineRedisCacheExtension;
use StfalconStudio\DoctrineRedisCacheBundle\Service\Migration\MigrationVersionService;
Expand Down Expand Up @@ -52,14 +51,14 @@ public function testLoadExtension(): void
$this->container->compile();

self::assertArrayHasKey(MigrationVersionService::class, $this->container->getRemovedIds());
self::assertArrayHasKey(MigrationFinderInterface::class, $this->container->getRemovedIds());
self::assertArrayHasKey(MigrationFinder::class, $this->container->getRemovedIds());

self::assertArrayNotHasKey(MigrationVersionService::class, $this->container->getDefinitions());
self::assertArrayNotHasKey(MigrationFinderInterface::class, $this->container->getDefinitions());
self::assertArrayNotHasKey(MigrationFinder::class, $this->container->getDefinitions());

$this->expectException(ServiceNotFoundException::class);

$this->container->get(MigrationVersionService::class);
$this->container->get(MigrationFinderInterface::class);
$this->container->get(MigrationFinder::class);
}
}

0 comments on commit fea39f3

Please sign in to comment.