@@ -114,7 +114,6 @@ public function testDropAddPrimaryKey() : void
114114 $ table = 'invoice ' ;
115115 $ fields = \PHPFUI \ORM ::describeTable ($ table );
116116 $ fieldName = $ table . '_id ' ;
117- $ this ->assertTrue ($ fields [$ fieldName ]->primaryKey );
118117 $ this ->assertTrue ($ fields [$ fieldName ]->autoIncrement );
119118 $ this ->assertFalse ($ fields [$ fieldName ]->nullable );
120119
@@ -126,34 +125,31 @@ public function testDropAddPrimaryKey() : void
126125 }
127126
128127 $ migration = new \Tests \Fixtures \MigrationWrapper ();
129- $ migration ->dropPrimaryKeyTest ($ table );
128+ $ this -> assertTrue ( $ migration ->dropPrimaryKeyTest ($ table) );
130129 $ migration ->executeAlters ();
131130 $ this ->assertEquals ('' , \PHPFUI \ORM ::getLastError ());
132131
133132 $ fields = \PHPFUI \ORM ::describeTable ($ table );
134- $ this ->assertFalse ($ fields [$ fieldName ]->primaryKey );
135133 $ this ->assertFalse ($ fields [$ fieldName ]->autoIncrement );
136134 $ this ->assertFalse ($ fields [$ fieldName ]->nullable );
137135
138- $ migration ->addPrimaryKeyTest ($ table , [$ fieldName ]);
136+ $ this -> assertTrue ( $ migration ->addPrimaryKeyTest ($ table , [$ fieldName ]) );
139137 $ migration ->executeAlters ();
140138 $ this ->assertEquals ('' , \PHPFUI \ORM ::getLastError ());
141139
142140 $ fields = \PHPFUI \ORM ::describeTable ($ table );
143- $ this ->assertTrue ($ fields [$ fieldName ]->primaryKey );
144141 $ this ->assertFalse ($ fields [$ fieldName ]->autoIncrement );
145142 $ this ->assertFalse ($ fields [$ fieldName ]->nullable );
146143
147- $ migration ->dropPrimaryKeyTest ($ table );
144+ $ this -> assertTrue ( $ migration ->dropPrimaryKeyTest ($ table) );
148145 $ migration ->executeAlters ();
149146 $ this ->assertEquals ('' , \PHPFUI \ORM ::getLastError ());
150147
151- $ migration ->addPrimaryKeyAutoIncrementTest ($ table );
148+ $ this -> assertTrue ( $ migration ->addPrimaryKeyAutoIncrementTest ($ table) );
152149 $ migration ->executeAlters ();
153150 $ this ->assertEquals ('' , \PHPFUI \ORM ::getLastError ());
154151
155152 $ fields = \PHPFUI \ORM ::describeTable ($ table );
156- $ this ->assertTrue ($ fields [$ fieldName ]->primaryKey );
157153 $ this ->assertTrue ($ fields [$ fieldName ]->autoIncrement );
158154 $ this ->assertFalse ($ fields [$ fieldName ]->nullable );
159155 }
@@ -187,7 +183,6 @@ public function testFields() : void
187183
188184 $ this ->assertArrayHasKey ('string_record_id ' , $ fields );
189185 $ this ->assertTrue ($ fields ['string_record_id ' ]->autoIncrement );
190- $ this ->assertTrue ($ fields ['string_record_id ' ]->primaryKey );
191186 $ this ->assertFalse ($ fields ['string_record_id ' ]->nullable );
192187 $ this ->assertEquals ('int ' , \substr ($ fields ['string_record_id ' ]->type , 0 , 3 )); // ignore precision
193188
0 commit comments