diff --git a/tests/ProfilerTest.php b/tests/ProfilerTest.php index 23a37f27..b80eab4e 100644 --- a/tests/ProfilerTest.php +++ b/tests/ProfilerTest.php @@ -44,7 +44,6 @@ public function setUp(): void $registry = $this->getMockBuilder(ManagerRegistry::class)->getMock(); $registry->method('getConnectionNames')->willReturn([]); $registry->method('getManagerNames')->willReturn([]); - $registry->method('getManagers')->willReturn([]); $this->collector = new DoctrineDataCollector($registry, true, $this->debugDataHolder); $twigLoaderFilesystem = new FilesystemLoader(__DIR__ . '/../templates/Collector'); @@ -120,5 +119,8 @@ public function testRender(): void '.*', preg_quote('SELECT * FROM foo WHERE bar IN ( ? , ? )'), ) . '/', $output)); + + $this->assertStringContainsString("Managed entities", $output); + $this->assertStringContainsString("No managed entities.", $output); } }