Move fixtures out of src

This commit is contained in:
Yassine Guedidi 2024-03-30 01:24:38 +01:00
parent ce286d7f7b
commit 7d20756b7b
13 changed files with 4 additions and 2 deletions

View file

@ -6,6 +6,6 @@ services:
# fixtures
Wallabag\DataFixtures\:
resource: '../../src/DataFixtures/*'
resource: '../../fixtures/*'
tags: ['doctrine.fixture.orm']
autowire: true

View file

@ -12,6 +12,7 @@ return $config
->addPathToScan(__DIR__ . '/migrations', false)
->addPathToScan(__DIR__ . '/src', false)
->addPathToScan(__DIR__ . '/web', false)
->addPathToScan(__DIR__ . '/fixtures', true)
->addPathToScan(__DIR__ . '/tests', true)
->ignoreErrorsOnPackages([
'babdev/pagerfanta-bundle',

View file

@ -200,7 +200,8 @@
},
"autoload-dev": {
"psr-4": {
"Tests\\Wallabag\\": "tests/"
"Tests\\Wallabag\\": "tests/",
"Wallabag\\DataFixtures\\": "fixtures/"
},
"files": [
"tests/functions.php"