Skip to content

Commit

Permalink
minor(orm): refactor tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kbond committed Jul 14, 2023
1 parent f4b1c48 commit 5401c5f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@
* file that was distributed with this source code.
*/

namespace Zenstruck\Collection\Tests\Doctrine\ORM;
namespace Zenstruck\Collection\Tests\Doctrine\ORM\Bridge;

use Zenstruck\Collection\Doctrine\ORM\Bridge\ORMEntityRepository;
use Zenstruck\Collection\Tests\Doctrine\Fixture\Entity;
use Zenstruck\Collection\Tests\Doctrine\ORM\Fixture\EntityRepositoryWithBridge;
use Zenstruck\Collection\Tests\Doctrine\ORM\EntityRepositoryTest;

/**
* @author Kevin Bond <[email protected]>
*/
final class EntityRepositoryBridgeTest extends EntityRepositoryTest
final class ORMEntityRepositoryTest extends EntityRepositoryTest
{
/**
* @test
Expand All @@ -37,8 +38,8 @@ public function find_all_is_empty_if_repository_is_empty(): void
$this->assertSame([], $this->createWithItems(0)->findAll());
}

protected function repo(): EntityRepositoryWithBridge
protected function repo(): ORMEntityRepository
{
return new EntityRepositoryWithBridge($this->em, $this->em->getClassMetadata(Entity::class));
return new ORMEntityRepository($this->em, $this->em->getClassMetadata(Entity::class));
}
}
24 changes: 0 additions & 24 deletions tests/Doctrine/ORM/Fixture/EntityRepositoryWithBridge.php

This file was deleted.

0 comments on commit 5401c5f

Please sign in to comment.