Skip to content

Commit

Permalink
Merge pull request #207 from kbond/fix-migrations-php8
Browse files Browse the repository at this point in the history
Fix migration tests on PHP8
  • Loading branch information
kbond committed Oct 21, 2021
2 parents 2ef6c6a + 676f00a commit 6870966
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,12 @@ jobs:

- name: 'Test: MySQL, DoctrineMigrationsBundle'
run: vendor/bin/simple-phpunit -v
if: matrix.php < 8.0
env:
FOUNDRY_RESET_MODE: migrate
DATABASE_URL: mysql://root:1234@127.0.0.1:3306/zenstruck_foundry?serverVersion=5.7

- name: 'Test: MySQL, DoctrineMigrationsBundle, DAMABundle'
run: vendor/bin/simple-phpunit -v --configuration phpunit-dama-doctrine.xml.dist
if: matrix.php < 8.0
env:
FOUNDRY_RESET_MODE: migrate
DATABASE_URL: mysql://root:1234@127.0.0.1:3306/zenstruck_foundry?serverVersion=5.7
Expand Down
5 changes: 5 additions & 0 deletions tests/Fixtures/Migrations/Version20210218175742.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,9 @@ public function up(Schema $schema): void
public function down(Schema $schema): void
{
}

public function isTransactional(): bool
{
return false;
}
}
5 changes: 5 additions & 0 deletions tests/Fixtures/Migrations/Version20210318175742.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,9 @@ public function up(Schema $schema): void
public function down(Schema $schema): void
{
}

public function isTransactional(): bool
{
return false;
}
}
5 changes: 5 additions & 0 deletions tests/Fixtures/Migrations/Version20210820131815.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,9 @@ public function up(Schema $schema): void
public function down(Schema $schema): void
{
}

public function isTransactional(): bool
{
return false;
}
}

0 comments on commit 6870966

Please sign in to comment.