Skip to content

Commit

Permalink
Doctrine fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
anyitsolutions committed Mar 5, 2022
1 parent 6fb5e24 commit 749f03a
Show file tree
Hide file tree
Showing 13 changed files with 431 additions and 13 deletions.
1 change: 1 addition & 0 deletions .env.test
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# define your env variables for the test env here
APP_ENV=test
KERNEL_CLASS='App\Shared\Infrastructure\Kernel'
APP_SECRET='$ecretf0rt3st'
SYMFONY_DEPRECATIONS_HELPER=999999
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Symfony

### Dockerise Symfony Application

- [X] [Install Docker](https://docs.docker.com/engine/install/)
Expand All @@ -17,13 +18,16 @@
- [X] [Integrate PHPUnit with a PhpStorm project](https://symfony.com/doc/current/testing.html#the-phpunit-testing-framework)

### Clean Architecture

- [X] [Onion Architecture](https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-architecture.html)
- [X] [Monolith First](https://martinfowler.com/bliki/MonolithFirst.html)

### Databases and the Doctrine ORM

- [X] [Installing Doctrine](https://symfony.com/doc/current/doctrine.html)
- [X] [Setting up a Database](https://symfony.com/doc/current/the-fast-track/en/7-database.html)
- [X] [Mapping](https://www.doctrine-project.org/projects/doctrine-orm/en/current/reference/xml-mapping.html)
- [X] [Migrations](https://symfony.com/doc/current/doctrine.html#migrations-creating-the-database-tables-schema)
- [X] [Repository](https://symfony.com/doc/current/doctrine.html#querying-for-objects-the-repository)
- [X] [Database Testing](https://symfony.com/doc/current/testing/database.html)
- [X] [Database Testing](https://symfony.com/doc/current/testing/database.html)
- [X] [Fixtures](https://symfony.com/bundles/DoctrineFixturesBundle/current/index.html)
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
"symfony/yaml": "6.0.*"
},
"require-dev": {
"dama/doctrine-test-bundle": "^6.7",
"doctrine/doctrine-fixtures-bundle": "^3.4",
"fakerphp/faker": "^1.19",
"liip/test-fixtures-bundle": "^2.2",
"phpunit/phpunit": "^9.5",
"symfony/browser-kit": "6.0.*",
"symfony/css-selector": "6.0.*",
Expand Down
320 changes: 319 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions config/bundles.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true],
Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => true],
Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle::class => ['dev' => true, 'test' => true],
Liip\TestFixturesBundle\LiipTestFixturesBundle::class => ['dev' => true, 'test' => true],
DAMA\DoctrineTestBundle\DAMADoctrineTestBundle::class => ['dev' => true, 'test' => true],
];
Loading

0 comments on commit 749f03a

Please sign in to comment.