Skip to content

Commit

Permalink
Fix phpstan & phpcs after 850c125
Browse files Browse the repository at this point in the history
Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed Dec 16, 2019
1 parent d6aa52c commit ef7a121
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion phpstan-baseline.neon
Expand Up @@ -3989,7 +3989,7 @@ parameters:

-
message: "#^Parameter \\#8 \\$default_value of static method PhpMyAdmin\\\\Table\\:\\:generateFieldSpec\\(\\) expects string, int given\\.$#"
count: 8
count: 14
path: test/classes/TableTest.php

-
Expand Down
12 changes: 6 additions & 6 deletions test/classes/TableTest.php
Expand Up @@ -731,7 +731,7 @@ public function testGenerateFieldSpec()
'id'
);
$this->assertEquals(
"`ids` INT(11) PMA_attribute NULL AUTO_INCREMENT "
'`ids` INT(11) PMA_attribute NULL AUTO_INCREMENT '
. "COMMENT 'PMA_comment' FIRST",
$query
);
Expand All @@ -758,7 +758,7 @@ public function testGenerateFieldSpec()
);
// Add primary key for AUTO_INCREMENT if missing
$this->assertEquals(
"`ids` INT(11) PMA_attribute NULL AUTO_INCREMENT "
'`ids` INT(11) PMA_attribute NULL AUTO_INCREMENT '
. "COMMENT 'PMA_comment' FIRST, add PRIMARY KEY (`ids`)",
$query
);
Expand All @@ -785,7 +785,7 @@ public function testGenerateFieldSpec()
);
// Do not add PK
$this->assertEquals(
"`id` INT(11) PMA_attribute NULL DEF "
'`id` INT(11) PMA_attribute NULL DEF '
. "COMMENT 'PMA_comment' FIRST",
$query
);
Expand All @@ -812,7 +812,7 @@ public function testGenerateFieldSpec()
);
// Do not add PK
$this->assertEquals(
"`ids` INT(11) PMA_attribute NULL DEF "
'`ids` INT(11) PMA_attribute NULL DEF '
. "COMMENT 'PMA_comment' FIRST",
$query
);
Expand All @@ -839,7 +839,7 @@ public function testGenerateFieldSpec()
);
// Add it beaucause it is missing
$this->assertEquals(
"`ids` INT(11) PMA_attribute NULL DEF "
'`ids` INT(11) PMA_attribute NULL DEF '
. "COMMENT 'PMA_comment' FIRST, add PRIMARY KEY (`ids`)",
$query
);
Expand All @@ -866,7 +866,7 @@ public function testGenerateFieldSpec()
);
// Do not add PK since it is not a AUTO_INCREMENT
$this->assertEquals(
"`ids` INT(11) PMA_attribute AS (1) VIRTUAL NULL "
'`ids` INT(11) PMA_attribute AS (1) VIRTUAL NULL '
. "USER_DEFINED COMMENT 'PMA_comment' FIRST",
$query
);
Expand Down

0 comments on commit ef7a121

Please sign in to comment.