Skip to content

Commit 02a8706

Browse files
Merge branch '5.0' of github.com:darkwebdesign/symfony-addon-pack into ISSUE-190
2 parents 258fb1e + acb5be4 commit 02a8706

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
/.phpunit.result.cache
12
/composer.lock
23
/vendor/

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"symfony/form": "5.0.*"
1616
},
1717
"require-dev": {
18-
"phpunit/phpunit": "^7.5"
18+
"phpunit/phpunit": "^8.5"
1919
},
2020
"suggest": {
2121
"darkwebdesign/symfony-addon-pack": "All Symfony add-ons bundled together"

tests/EntityTypeTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
use Doctrine\Common\Persistence\ObjectManager;
2828
use Doctrine\Common\Persistence\ObjectRepository;
2929
use Doctrine\ORM\EntityManager;
30+
use Symfony\Component\Form\Exception\RuntimeException;
3031
use Symfony\Component\Form\PreloadedExtension;
3132
use Symfony\Component\Form\Test\TypeTestCase;
3233

@@ -157,12 +158,11 @@ public function testEntityManagerString()
157158
$this->assertSame($this->entity, $form->getData());
158159
}
159160

160-
/**
161-
* @expectedException \Symfony\Component\Form\Exception\RuntimeException
162-
* @expectedExceptionMessage Class "DarkWebDesign\SymfonyAddonFormTypes\Tests\Models\City" seems not to be a managed Doctrine entity. Did you forget to map it?
163-
*/
164161
public function testNoEntityManager()
165162
{
163+
$this->expectException(RuntimeException::class);
164+
$this->expectExceptionMessage('Class "DarkWebDesign\SymfonyAddonFormTypes\Tests\Models\City" seems not to be a managed Doctrine entity. Did you forget to map it?');
165+
166166
$this->registry->method('getManager')->willReturn(null);
167167
$this->registry->method('getManagerForClass')->willReturn(null);
168168

0 commit comments

Comments
 (0)