Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branches 'master' and '96-component-schema-should-be-optional' …
…of github.com:php-openapi/yii2-openapi into 96-component-schema-should-be-optional
  • Loading branch information
SOHELAHMED7 committed Mar 12, 2025
commit 24d559a2aae2dc0bc6115c0f992751e7a4a79b7d
15 changes: 15 additions & 0 deletions tests/unit/IssueFixTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1015,6 +1015,21 @@ public function test22BugRulesRequiredIsGeneratedBeforeDefault()
$this->checkFiles($actualFiles, $expectedFiles);
}

// https://github.com/php-openapi/yii2-openapi/issues/23
public function test23ConsiderOpenapiExtensionXNoRelationAlsoInOtherPertinentPlace()
{
$testFile = Yii::getAlias("@specs/issue_fix/23_consider_openapi_extension_x_no_relation_also_in_other_pertinent_place/index.php");
$this->runGenerator($testFile);
$actualFiles = FileHelper::findFiles(Yii::getAlias('@app'), [
'recursive' => true,
]);
$expectedFiles = FileHelper::findFiles(Yii::getAlias("@specs/issue_fix/23_consider_openapi_extension_x_no_relation_also_in_other_pertinent_place/mysql"), [
'recursive' => true,
]);
$this->checkFiles($actualFiles, $expectedFiles);
$this->runActualMigrations();
}

// https://github.com/php-openapi/yii2-openapi/issues/96
public function test96ComponentSchemaShouldBeOptional()
{
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.