Skip to content

Commit 50bb11d

Browse files
committed
partly revert
1 parent 90d59c3 commit 50bb11d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/rules/QueryPlanAnalyzerRuleTest.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ public static function getAdditionalConfigFiles(): array
5757

5858
public function testNotUsingIndex(): void
5959
{
60+
if ('pdo-pgsql' === getenv('DBA_REFLECTOR')) {
61+
self::markTestSkipped('query plan analyzer is not yet implemented for pgsql');
62+
}
63+
64+
if (ReflectorFactory::MODE_RECORDING !== getenv('DBA_MODE')) {
65+
self::markTestSkipped('query plan analyzer requires a active database connection');
66+
}
67+
6068
$this->numberOfAllowedUnindexedReads = true;
6169
$this->numberOfRowsNotRequiringIndex = 2;
6270

@@ -104,6 +112,14 @@ public function testNotUsingIndex(): void
104112

105113
public function testNotUsingIndexInDebugMode(): void
106114
{
115+
if ('pdo-pgsql' === getenv('DBA_REFLECTOR')) {
116+
self::markTestSkipped('query plan analyzer is not yet implemented for pgsql');
117+
}
118+
119+
if (ReflectorFactory::MODE_RECORDING !== getenv('DBA_MODE')) {
120+
self::markTestSkipped('query plan analyzer requires a active database connection');
121+
}
122+
107123
$this->debugMode = true;
108124
$this->numberOfAllowedUnindexedReads = true;
109125
$this->numberOfRowsNotRequiringIndex = 2;

0 commit comments

Comments
 (0)