Skip to content

Commit e44be6f

Browse files
committed
Merge branch 'test-transactions'
2 parents ba93574 + aa5ee84 commit e44be6f

7 files changed

Lines changed: 90 additions & 5 deletions

File tree

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
"twig/twig": "^3.21"
5757
},
5858
"require-dev": {
59+
"dama/doctrine-test-bundle": "^8.3",
5960
"friendsofphp/php-cs-fixer": "^3.75",
6061
"phpstan/phpstan": "^2.1",
6162
"phpunit/phpunit": "^11.5",

composer.lock

Lines changed: 70 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/bundles.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
return [
44
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
5+
DAMA\DoctrineTestBundle\DAMADoctrineTestBundle::class => ['test' => true],
56
Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true],
67
Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle::class => ['dev' => true, 'test' => true],
78
Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => true],
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
when@test:
2+
dama_doctrine_test:
3+
enable_static_connection: true
4+
enable_static_meta_data_cache: true
5+
enable_static_query_cache: true

phpunit.dist.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
</source>
3434

3535
<extensions>
36+
<bootstrap class="DAMA\DoctrineTestBundle\PHPUnit\PHPUnitExtension" />
3637
<bootstrap class="Symfony\Bridge\PhpUnit\SymfonyExtension">
3738
<parameter name="clock-mock-namespaces" value="App" />
3839
<parameter name="dns-mock-namespaces" value="App" />

symfony.lock

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/FunctionalTests/Controller/Dashboard/DashboardPackagesControllerTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ public function testAddMirroring(): void
4646

4747
$package = $packageRepository->findOneByName('psr/cache');
4848
self::assertNotNull($package, 'A package was created.');
49-
50-
$packageRepository->remove($package, true);
5149
}
5250

5351
public function testAddVcsRepository(): void
@@ -70,8 +68,6 @@ public function testAddVcsRepository(): void
7068

7169
$package = $packageRepository->findOneByName('psr/container');
7270
self::assertNotNull($package, 'A package was created.');
73-
74-
$packageRepository->remove($package, true);
7571
}
7672

7773
public function testEdit(): void

0 commit comments

Comments
 (0)