Skip to content

Commit

Permalink
Merge pull request #1521 from scyzoryck/stop-using-orm-version
Browse files Browse the repository at this point in the history
refactor(test): Stop using ORM Version class
  • Loading branch information
scyzoryck authored Oct 27, 2023
2 parents 1de9b18 + 9cbffa8 commit 8c4640e
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions tests/Serializer/Doctrine/ObjectConstructorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
use Doctrine\ORM\PersistentCollection;
use Doctrine\ORM\Tools\SchemaTool;
use Doctrine\ORM\UnitOfWork;
use Doctrine\ORM\Version as ORMVersion;
use Doctrine\Persistence\AbstractManagerRegistry;
use Doctrine\Persistence\ManagerRegistry;
use Doctrine\Persistence\Mapping\ClassMetadata as DoctrineClassMetadata;
Expand Down Expand Up @@ -359,10 +358,6 @@ public function testPersistendCollectionIsNotReplaced(string $data, string $type

public function testFallbackOnEmbeddableClassWithXmlDriver()
{
if (ORMVersion::compare('2.5') >= 0) {
$this->markTestSkipped('Not using Doctrine ORM >= 2.5 with Embedded entities');
}

$fallback = $this->getMockBuilder(ObjectConstructorInterface::class)->getMock();
$fallback->expects($this->once())->method('construct');

Expand Down Expand Up @@ -393,10 +388,6 @@ static function ($id) use ($connection, $entityManager) {

public function testFallbackOnEmbeddableClassWithXmlDriverAndXmlData()
{
if (ORMVersion::compare('2.5') >= 0) {
$this->markTestSkipped('Not using Doctrine ORM >= 2.5 with Embedded entities');
}

$fallback = $this->getMockBuilder(ObjectConstructorInterface::class)->getMock();
$fallback->expects($this->once())->method('construct');

Expand Down

0 comments on commit 8c4640e

Please sign in to comment.