diff --git a/Tests/Command/InfoDoctrineCommandTest.php b/Tests/Command/InfoDoctrineCommandTest.php
index <HASH>..<HASH> 100644
--- a/Tests/Command/InfoDoctrineCommandTest.php
+++ b/Tests/Command/InfoDoctrineCommandTest.php
@@ -25,9 +25,6 @@ class InfoDoctrineCommandTest extends TestCase
         $testContainer = $this->createYamlBundleTestContainer();
         $kernel = $this->getMock('Symfony\Component\HttpKernel\Kernel', array(), array(), '', false);
         $kernel->expects($this->once())
-               ->method('getBundles')
-               ->will($this->returnValue(array()));
-        $kernel->expects($this->once())
                ->method('getContainer')
                ->will($this->returnValue($testContainer));
         $application = new Application($kernel);
changed Application to have nice error messages when something bad happens early on the CLI