From 5ce02c1d5850adc45bcd6212710ce07bdf857e4d Mon Sep 17 00:00:00 2001 From: gloas <gloas@afi-sa.fr> Date: Tue, 24 Jan 2017 09:12:49 +0100 Subject: [PATCH] hotline #51508 fix upgradeDb assertion --- tests/db/UpgradeDBTest.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/db/UpgradeDBTest.php b/tests/db/UpgradeDBTest.php index 5ec91635271..1adf3a47407 100644 --- a/tests/db/UpgradeDBTest.php +++ b/tests/db/UpgradeDBTest.php @@ -1209,14 +1209,16 @@ class UpgradeDB_316_Test extends UpgradeDBTestCase { public function prepare() { try { $this->query("ALTER TABLE codif_section MODIFY id_section tinyint(4)"); - } catch (Exception $e){ + } catch (Exception $e) { var_dump($e); } } /** @test */ - public function intIdProfilShouldExists() { - $this->assertFieldType('codif_section','id_section', 'int(11) NOT NULL AUTO_INCREMENT'); + public function idSectionShouldBeIntElevenPrimaryKey() { + $this->assertFieldType('codif_section','id_section', 'int(11)'); + $this->assertField('codif_section','id_section', 'PRI', 'Key'); + $this->assertField('codif_section','id_section', 'NO', 'Null'); } } \ No newline at end of file -- GitLab