This repository was archived by the owner on Jun 4, 2024. It is now read-only.
This repository was archived by the owner on Jun 4, 2024. It is now read-only.
Running phpunit
second time fails a tests #139
Description
If I run ./vendor/bin/phpunit
first time after fresh docker-start, all tests passes successfully.
If I run same command second time, all tests passes successfully except one tests\unit\MultiDbSecondaryMigrationTest::testMysql
It is the same issue as in #137
I found that this is caused by:
Few tests (e.g. XDbTypeTest) applies (runUpMigrations()
) and revert (runDownMigrations()
) migrations
$this->runUpMigrations('mysql', 4); <------ this
Yii::$app->db->schema->refresh();
$this->runFaker();
$this->runDownMigrations('mysql', 4); <------ this
Stub: SOHELAHMED7@cef2b0f
This changes the order of the foreign key stored in MySQL internal DBs.
If I don't applies and revert migrations, this test passes
- also fix failing test https://github.com/cebe/yii2-openapi/actions/runs/4495372969/jobs/7908924109
- hint for above: "could be related to ordering of files when reading a file list. If that is the case, sorting alphabetically after reading the list and before doing sort by dependency could help."
Metadata
Metadata
Assignees
Labels
No labels