Skip to content

Commit 09237a1

Browse files
committed
Merge branch 'QA'
2 parents c3aa12b + da409e9 commit 09237a1

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

tests/Builder/CreateStatementTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,7 @@ public function testBuildCreateTableSortedIndex()
657657

658658
public function testBuildCreateTableComplexIndexes()
659659
{
660+
// phpcs:disable Generic.Files.LineLength.TooLong
660661
$parser = new Parser(
661662
<<<'SQL'
662663
CREATE TABLE `page_rebuild_control` (
@@ -701,10 +702,12 @@ public function testBuildCreateTableComplexIndexes()
701702
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
702703
SQL
703704
);
705+
// phpcs:enable
704706

705707
/** @var CreateStatement $stmt */
706708
$stmt = $parser->statements[0];
707709

710+
// phpcs:disable Generic.Files.LineLength.TooLong
708711
$tableBody = <<<'SQL'
709712
(
710713
`proc_row_number` int DEFAULT NULL,
@@ -736,6 +739,7 @@ public function testBuildCreateTableComplexIndexes()
736739
KEY `updated_tz_ind` ((convert_tz(`cache_updated`,_utf8mb4'GMT',_utf8mb4'GB')))
737740
)
738741
SQL;
742+
// phpcs:enable
739743

740744
$this->assertEquals(
741745
$tableBody,

tests/Components/KeyTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ public function testParseKeyExpressionWithOptionsError()
203203
$component = Key::parse(
204204
$parser,
205205
$this->getTokensList(
206-
'KEY `updated_tz_ind2` (()convert_tz(`cache_updated`,_utf8mb4\'GMT\',_utf8mb4\'GB\'))) COMMENT \'my comment\','
206+
'KEY `updated_tz_ind2` (()convert_tz(`cache_updated`,_utf8mb4\'GMT\',_utf8mb4\'GB\')))'
207+
. ' COMMENT \'my comment\','
207208
)
208209
);
209210
$this->assertEquals('KEY', $component->type);

0 commit comments

Comments
 (0)