Skip to content

Commit 9e02f26

Browse files
committed
Clean skippable tests that are never skipped
1 parent 706d366 commit 9e02f26

File tree

3 files changed

+0
-23
lines changed

3 files changed

+0
-23
lines changed

Tests/Form/ChoiceList/ORMQueryBuilderLoaderTest.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Doctrine\DBAL\Connection;
1515
use Doctrine\DBAL\Types\GuidType;
1616
use Doctrine\DBAL\Types\Type;
17-
use Doctrine\ORM\Version;
1817
use PHPUnit\Framework\TestCase;
1918
use Symfony\Bridge\Doctrine\Form\ChoiceList\ORMQueryBuilderLoader;
2019
use Symfony\Bridge\Doctrine\Tests\DoctrineTestHelper;
@@ -226,12 +225,6 @@ public function testUidThrowProperException($entityClass)
226225

227226
public function testEmbeddedIdentifierName()
228227
{
229-
if (Version::compare('2.5.0') > 0) {
230-
$this->markTestSkipped('Applicable only for Doctrine >= 2.5.0');
231-
232-
return;
233-
}
234-
235228
$em = DoctrineTestHelper::createTestEntityManager();
236229

237230
$query = $this->getMockBuilder(\QueryMock::class)

Tests/PropertyInfo/DoctrineExtractorTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,6 @@ public function testGetProperties()
8686

8787
public function testTestGetPropertiesWithEmbedded()
8888
{
89-
if (!class_exists(\Doctrine\ORM\Mapping\Embedded::class)) {
90-
$this->markTestSkipped('@Embedded is not available in Doctrine ORM lower than 2.5.');
91-
}
92-
9389
$this->assertEquals(
9490
[
9591
'id',
@@ -109,10 +105,6 @@ public function testExtract($property, array $type = null)
109105

110106
public function testExtractWithEmbedded()
111107
{
112-
if (!class_exists(\Doctrine\ORM\Mapping\Embedded::class)) {
113-
$this->markTestSkipped('@Embedded is not available in Doctrine ORM lower than 2.5.');
114-
}
115-
116108
$expectedTypes = [new Type(
117109
Type::BUILTIN_TYPE_OBJECT,
118110
false,

Tests/Validator/DoctrineLoaderTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
use Symfony\Component\Validator\Mapping\AutoMappingStrategy;
2828
use Symfony\Component\Validator\Mapping\CascadingStrategy;
2929
use Symfony\Component\Validator\Mapping\ClassMetadata;
30-
use Symfony\Component\Validator\Mapping\Loader\AutoMappingTrait;
3130
use Symfony\Component\Validator\Mapping\PropertyMetadata;
3231
use Symfony\Component\Validator\Mapping\TraversalStrategy;
3332
use Symfony\Component\Validator\Tests\Fixtures\Entity;
@@ -38,13 +37,6 @@
3837
*/
3938
class DoctrineLoaderTest extends TestCase
4039
{
41-
protected function setUp(): void
42-
{
43-
if (!trait_exists(AutoMappingTrait::class)) {
44-
$this->markTestSkipped('Auto-mapping requires symfony/validation 4.4+');
45-
}
46-
}
47-
4840
public function testLoadClassMetadata()
4941
{
5042
$validator = Validation::createValidatorBuilder()

0 commit comments

Comments
 (0)