Skip to content

Commit 5780260

Browse files
committed
Revert renaming the environment test_mongodb to mongodb
1 parent 2120d58 commit 5780260

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

phpunit.mongo.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<env name="SYMFONY_DEPRECATIONS_HELPER" value="weak_vendors" />
1414
<server name="KERNEL_DIR" value="tests/Fixtures/app/" />
1515
<server name="KERNEL_CLASS" value="AppKernel" />
16-
<server name="APP_ENV" value="mongodb" />
16+
<server name="APP_ENV" value="test_mongodb" />
1717
<server name="LEGACY" value="0" />
1818
</php>
1919

tests/Bridge/Symfony/Bundle/Twig/ApiPlatformProfilerPanelTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function testDebugBarContent()
9797

9898
// Check extra info content
9999
$this->assertContains('sf-toolbar-status-default', $block->attr('class'), 'The toolbar block should have the default color.');
100-
$this->assertSame('mongodb' === $this->env ? DocumentDummy::class : Dummy::class, $block->filter('.sf-toolbar-info-piece span')->html());
100+
$this->assertSame('test_mongodb' === $this->env ? DocumentDummy::class : Dummy::class, $block->filter('.sf-toolbar-info-piece span')->html());
101101
}
102102

103103
public function testProfilerGeneralLayoutNotResourceClass()
@@ -136,7 +136,7 @@ public function testProfilerGeneralLayout()
136136

137137
$metrics = $crawler->filter('.metrics');
138138
$this->assertCount(1, $metrics->filter('.metric'), 'The should be one metric displayed (resource class).');
139-
$this->assertSame('mongodb' === $this->env ? DocumentDummy::class : Dummy::class, $metrics->filter('span.value')->html());
139+
$this->assertSame('test_mongodb' === $this->env ? DocumentDummy::class : Dummy::class, $metrics->filter('span.value')->html());
140140

141141
$this->assertCount(3, $crawler->filter('.sf-tabs .tab'), 'Tabs must be presents on the panel.');
142142

@@ -177,7 +177,7 @@ public function testGetCollectionProfiler()
177177
// Data provider tab
178178
$tabContent = $crawler->filter('.tab:nth-of-type(2) .tab-content');
179179
$this->assertSame('TRUE', $tabContent->filter('table tbody .status-success')->html());
180-
$this->assertContains('mongodb' === $this->env ? OdmCollectionDataProvider::class : CollectionDataProvider::class, $tabContent->filter('table tbody')->html());
180+
$this->assertContains('test_mongodb' === $this->env ? OdmCollectionDataProvider::class : CollectionDataProvider::class, $tabContent->filter('table tbody')->html());
181181

182182
$this->assertContains('No calls to item data provider have been recorded.', $tabContent->html());
183183
$this->assertContains('No calls to subresource data provider have been recorded.', $tabContent->html());
@@ -241,7 +241,7 @@ public function testGetItemProfiler()
241241
$this->assertSame(ContainNonResourceItemDataProvider::class, $tabContent->filter('table tbody tr:first-of-type td:nth-of-type(3)')->html());
242242

243243
$this->assertSame('TRUE', $tabContent->filter('table tbody .status-success')->html());
244-
$this->assertContains('mongodb' === $this->env ? OdmItemDataProvider::class : ItemDataProvider::class, $tabContent->filter('table tbody')->html());
244+
$this->assertContains('test_mongodb' === $this->env ? OdmItemDataProvider::class : ItemDataProvider::class, $tabContent->filter('table tbody')->html());
245245

246246
$this->assertContains('No calls to collection data provider have been recorded.', $tabContent->html());
247247
$this->assertContains('No calls to subresource data provider have been recorded.', $tabContent->html());

0 commit comments

Comments
 (0)