From f7fe9a67b89d7da1f06f254d61cd24637e5811a8 Mon Sep 17 00:00:00 2001 From: Jeroen Thora Date: Sun, 25 Jun 2017 21:04:02 +0200 Subject: [PATCH] Removed useless test --- Tests/BernardBundleTest.php | 56 ------------------------------------- 1 file changed, 56 deletions(-) delete mode 100644 Tests/BernardBundleTest.php diff --git a/Tests/BernardBundleTest.php b/Tests/BernardBundleTest.php deleted file mode 100644 index c634a4f..0000000 --- a/Tests/BernardBundleTest.php +++ /dev/null @@ -1,56 +0,0 @@ -container = new ContainerBuilder(); - } - - public function testExtension() - { - $bundle = new BernardBundle(); - - $this->assertInstanceOf('Bernard\BernardBundle\DependencyInjection\BernardExtension', $bundle->getContainerExtension()); - } - - public function testCompilerPassIsRegistered() - { - $bundle = new BernardBundle(); - $bundle->build($this->container); - - $passes = $this->container->getCompilerPassConfig()->getBeforeOptimizationPasses(); - - $this->assertCount(2, $passes); - $this->assertInstanceOf('Bernard\BernardBundle\DependencyInjection\Compiler\ReceiverPass', $passes[0]); - $this->assertInstanceOf('Bernard\BernardBundle\DependencyInjection\Compiler\NormalizerPass', $passes[1]); - } - - public function testCommandsAreRegistered() - { - $this->container->set('bernard.command.consume', new Command('bernard:consume')); - $this->container->set('bernard.command.produce', new Command('bernard:produce')); - - $application = new Application(); - - $bundle = new BernardBundle(); - $bundle->setContainer($this->container); - $bundle->registerCommands($application); - - $this->assertTrue($application->has('bernard:consume')); - $this->assertTrue($application->has('bernard:produce')); - - $this->assertTrue($application->has('bernard:debug')); - $this->assertInstanceOf('Bernard\BernardBundle\Command\DebugCommand', $application->get('bernard:debug')); - } -}