From 390bb649f0d40b5074b65bbf730acaab29c95269 Mon Sep 17 00:00:00 2001 From: Yanick Witschi Date: Sun, 7 Apr 2019 15:55:40 +0200 Subject: [PATCH] Fixed more tests --- .../Symfony/Bundle/Twig/ApiPlatformProfilerPanelTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Bridge/Symfony/Bundle/Twig/ApiPlatformProfilerPanelTest.php b/tests/Bridge/Symfony/Bundle/Twig/ApiPlatformProfilerPanelTest.php index 5c17bb0b1b2..0d1d1b301fb 100644 --- a/tests/Bridge/Symfony/Bundle/Twig/ApiPlatformProfilerPanelTest.php +++ b/tests/Bridge/Symfony/Bundle/Twig/ApiPlatformProfilerPanelTest.php @@ -97,7 +97,7 @@ public function testDebugBarContent() // Check extra info content $this->assertContains('sf-toolbar-status-default', $block->attr('class'), 'The toolbar block should have the default color.'); - $this->assertSame('test_mongodb' === $this->env ? DocumentDummy::class : Dummy::class, $block->filter('.sf-toolbar-info-piece span')->html()); + $this->assertSame('mongodb' === $this->env ? DocumentDummy::class : Dummy::class, $block->filter('.sf-toolbar-info-piece span')->html()); } public function testProfilerGeneralLayoutNotResourceClass() @@ -136,7 +136,7 @@ public function testProfilerGeneralLayout() $metrics = $crawler->filter('.metrics'); $this->assertCount(1, $metrics->filter('.metric'), 'The should be one metric displayed (resource class).'); - $this->assertSame('test_mongodb' === $this->env ? DocumentDummy::class : Dummy::class, $metrics->filter('span.value')->html()); + $this->assertSame('mongodb' === $this->env ? DocumentDummy::class : Dummy::class, $metrics->filter('span.value')->html()); $this->assertCount(3, $crawler->filter('.sf-tabs .tab'), 'Tabs must be presents on the panel.'); @@ -177,7 +177,7 @@ public function testGetCollectionProfiler() // Data provider tab $tabContent = $crawler->filter('.tab:nth-of-type(2) .tab-content'); $this->assertSame('TRUE', $tabContent->filter('table tbody .status-success')->html()); - $this->assertContains('test_mongodb' === $this->env ? OdmCollectionDataProvider::class : CollectionDataProvider::class, $tabContent->filter('table tbody')->html()); + $this->assertContains('mongodb' === $this->env ? OdmCollectionDataProvider::class : CollectionDataProvider::class, $tabContent->filter('table tbody')->html()); $this->assertContains('No calls to item data provider have been recorded.', $tabContent->html()); $this->assertContains('No calls to subresource data provider have been recorded.', $tabContent->html()); @@ -241,7 +241,7 @@ public function testGetItemProfiler() $this->assertSame(ContainNonResourceItemDataProvider::class, $tabContent->filter('table tbody tr:first-of-type td:nth-of-type(3)')->html()); $this->assertSame('TRUE', $tabContent->filter('table tbody .status-success')->html()); - $this->assertContains('test_mongodb' === $this->env ? OdmItemDataProvider::class : ItemDataProvider::class, $tabContent->filter('table tbody')->html()); + $this->assertContains('mongodb' === $this->env ? OdmItemDataProvider::class : ItemDataProvider::class, $tabContent->filter('table tbody')->html()); $this->assertContains('No calls to collection data provider have been recorded.', $tabContent->html()); $this->assertContains('No calls to subresource data provider have been recorded.', $tabContent->html());