@@ -364,8 +364,9 @@ public function test158BugGiiapiGeneratedRulesEnumWithTrim()
364364 // https://github.com/php-openapi/yii2-openapi/issues/60
365365 public function test60DescriptionOfAPropertyInSpecMustCorrespondToDbTableColumnComment ()
366366 {
367- $ this ->deleteTableFor60DescriptionOfAPropertyInSpecMustCorrespondToDbTableColumnComment ();
368- $ this ->createTableFor60DescriptionOfAPropertyInSpecMustCorrespondToDbTableColumnComment ();
367+ // MySQL
368+ $ this ->deleteTableFor60DescriptionOfAProperty ();
369+ $ this ->createTableFor60DescriptionOfAProperty ();
369370 $ testFile = Yii::getAlias ("@specs/issue_fix/60_description_of_a_property_in_spec_must_correspond_to_db_table_column_comment/index.php " );
370371 $ this ->runGenerator ($ testFile );
371372 // $actualFiles = FileHelper::findFiles(Yii::getAlias('@app'), [
@@ -375,13 +376,13 @@ public function test60DescriptionOfAPropertyInSpecMustCorrespondToDbTableColumnC
375376 // 'recursive' => true,
376377 // ]);
377378 // $this->checkFiles($actualFiles, $expectedFiles);
378-
379- $ this ->deleteTableFor60DescriptionOfAPropertyInSpecMustCorrespondToDbTableColumnComment ();
379+ $ this ->deleteTableFor60DescriptionOfAProperty ();
380380
381381
382+ // PgSQL
382383 $ this ->changeDbToPgsql ();
383- $ this ->deleteTableFor60DescriptionOfAPropertyInSpecMustCorrespondToDbTableColumnComment ();
384- $ this ->createTableFor60DescriptionOfAPropertyInSpecMustCorrespondToDbTableColumnComment ();
384+ $ this ->deleteTableFor60DescriptionOfAProperty ();
385+ $ this ->createTableFor60DescriptionOfAProperty ();
385386 $ this ->runGenerator ($ testFile , 'pgsql ' );
386387 // $actualFiles = FileHelper::findFiles(Yii::getAlias('@app'), [
387388 // 'recursive' => true,
@@ -390,11 +391,10 @@ public function test60DescriptionOfAPropertyInSpecMustCorrespondToDbTableColumnC
390391 // 'recursive' => true,
391392 // ]);
392393 // $this->checkFiles($actualFiles, $expectedFiles);
393-
394- $ this ->deleteTableFor60DescriptionOfAPropertyInSpecMustCorrespondToDbTableColumnComment ();
394+ $ this ->deleteTableFor60DescriptionOfAProperty ();
395395 }
396396
397- private function createTableFor60DescriptionOfAPropertyInSpecMustCorrespondToDbTableColumnComment ()
397+ private function createTableFor60DescriptionOfAProperty ()
398398 {
399399 Yii::$ app ->db ->createCommand ()->createTable ('{{%animals}} ' , [
400400 'id ' => 'pk ' ,
@@ -403,7 +403,7 @@ private function createTableFor60DescriptionOfAPropertyInSpecMustCorrespondToDbT
403403 ])->execute ();
404404 }
405405
406- private function deleteTableFor60DescriptionOfAPropertyInSpecMustCorrespondToDbTableColumnComment ()
406+ private function deleteTableFor60DescriptionOfAProperty ()
407407 {
408408 Yii::$ app ->db ->createCommand ('DROP TABLE IF EXISTS {{%animals}} ' )->execute ();
409409 }
0 commit comments