Skip to content

Commit

Permalink
Fix linking of extension for functional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaswolf committed Nov 21, 2024
1 parent 7ffb944 commit 205b21d
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,14 @@ jobs:
run: |
composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"$TYPO3"
composer show
- name: "Symlink root package to typo3conf/ext/"
if: "matrix.typo3-version == '^12.4'"
run: |
mkdir -p public/typo3conf/ext/
cd public/typo3conf/ext/
ln -s ../../../ migrations
- name: "Install lowest dependencies with composer"
if: "matrix.composer-dependencies == 'lowest'"
run: |
Expand All @@ -121,6 +129,7 @@ jobs:
run: |
composer update --no-ansi --no-interaction --no-progress --with-dependencies
composer show
- name: "Start MySQL"
run: "sudo /etc/init.d/mysql start"
- name: "Run functional tests"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
{
"name": "andreaswolf/typo3-migrations-test-migrations",
"type": "typo3-cms-extension",
"autoload": {
"psr-4": {
"KayStrobach\\Migrations\\TestFixtures\\Migrations\\": "Migrations/"
}
},
"extra": {
"typo3/cms": {
"extension-key": "test_migrations"
}
}
}
2 changes: 1 addition & 1 deletion Tests/Functional/Command/MigrateCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
class MigrateCommandTest extends FunctionalTestCase
{
protected array $testExtensionsToLoad = [
'typo3conf/ext/migrations',
'kaystrobach/migrations',
'typo3conf/ext/migrations/Tests/Functional/Command/Fixtures/test_migrations',
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
class AbstractDataHandlerMigrationTest extends FunctionalTestCase
{
protected array $testExtensionsToLoad = [
'typo3conf/ext/migrations',
'kaystrobach/migrations',
'typo3conf/ext/migrations/Tests/Functional/Migration/Fixtures/test_migrations_datahandler',
];

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
{
"name": "andreaswolf/typo3-migrations-test-migrations-datahandler",
"type": "typo3-cms-extension",
"autoload": {
"psr-4": {
"KayStrobach\\Migrations\\TestFixtures\\Migrations\\": "Migrations/"
}
},
"extra": {
"typo3/cms": {
"extension-key": "test_migrations_datahandler"
}
}
}

0 comments on commit 205b21d

Please sign in to comment.