Skip to content

Commit 238c3a7

Browse files
committed
ACP2E-4094: Add index check for queries when loggging mode is enabled.
1 parent c3e5809 commit 238c3a7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/internal/Magento/Framework/DB/Test/Unit/Logger/QueryIndexAnalyzerTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ public function testProcessSmallTable(): void
8383
$sql = "SELECT `main_table`.* FROM `admin_system_messages` AS `main_table`
8484
ORDER BY severity ASC, created_at DESC";
8585
$bind = [];
86-
$explainResult = '[{"id":"1","select_type":"SIMPLE","table":"admin_system_messages","partitions":null,"type":"ALL",
87-
"possible_keys":null,"key":null,"key_len":null,"ref":null,"rows":"1","filtered":"100.00",
86+
$explainResult = '[{"id":"1","select_type":"SIMPLE","table":"admin_system_messages","partitions":null,
87+
"type":"ALL","possible_keys":null,"key":null,"key_len":null,"ref":null,"rows":"1","filtered":"100.00",
8888
"Extra":"Using filesort"}]';
8989

9090
$this->serializer->expects($this->once())
@@ -116,7 +116,8 @@ public function testProcessSmallTable(): void
116116
* @dataProvider statsNonSelectDataProvider
117117
* @testdox $sql with bindings $bind to get $expectedResult
118118
*/
119-
public function testProcessThrowsExceptionForNonSelectQuery(string $sql, array $bind): void {
119+
public function testProcessThrowsExceptionForNonSelectQuery(string $sql, array $bind): void
120+
{
120121
$this->expectException(QueryAnalyzerException::class);
121122
$this->expectExceptionMessage("Can't process query type");
122123
$this->serializer->expects($this->never())->method('serialize');

0 commit comments

Comments
 (0)