File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -1044,4 +1044,18 @@ public function test87ImplementForJsonInIsrefpointertoschema()
10441044 $ this ->checkFiles ($ actualFiles , $ expectedFiles );
10451045 $ this ->runActualMigrations ();
10461046 }
1047+
1048+ // https://github.com/php-openapi/yii2-openapi/issues/78
1049+ public function test78PropertiesThatAreMarkedAsReadonlyAreNotReadOnly ()
1050+ {
1051+ $ testFile = Yii::getAlias ("@specs/issue_fix/78_properties_that_are_marked_as_readonly_are_not_read_only/index.php " );
1052+ $ this ->runGenerator ($ testFile );
1053+ $ actualFiles = FileHelper::findFiles (Yii::getAlias ('@app ' ), [
1054+ 'recursive ' => true ,
1055+ ]);
1056+ $ expectedFiles = FileHelper::findFiles (Yii::getAlias ("@specs/issue_fix/78_properties_that_are_marked_as_readonly_are_not_read_only/mysql " ), [
1057+ 'recursive ' => true ,
1058+ ]);
1059+ $ this ->checkFiles ($ actualFiles , $ expectedFiles );
1060+ }
10471061}
You can’t perform that action at this time.
0 commit comments