DDC-3427 - s/EntityManager/EntityManagerInterface in relevant tests about identifier generation
This commit is contained in:
parent
6fc0d84b7a
commit
dd8db1acd2
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Doctrine\Tests\Mocks;
|
||||
|
||||
use Doctrine\ORM\EntityManager;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
|
||||
/**
|
||||
* Mock class for SequenceGenerator.
|
||||
@ -17,7 +17,7 @@ class SequenceMock extends \Doctrine\ORM\Id\SequenceGenerator
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function generate(EntityManager $em, $entity)
|
||||
public function generate(EntityManagerInterface $em, $entity)
|
||||
{
|
||||
return $this->_sequenceNumber++;
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Doctrine\Tests\ORM\Functional\Ticket;
|
||||
|
||||
use Doctrine\ORM\EntityManager;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Doctrine\ORM\Id\AbstractIdGenerator;
|
||||
use Doctrine\ORM\Mapping\ClassMetadataInfo;
|
||||
use Doctrine\ORM\Mapping\Driver\StaticPHPDriver;
|
||||
@ -97,7 +97,7 @@ class DDC2415ChildEntity extends DDC2415ParentEntity
|
||||
|
||||
class DDC2415Generator extends AbstractIdGenerator
|
||||
{
|
||||
public function generate(EntityManager $em, $entity)
|
||||
public function generate(EntityManagerInterface $em, $entity)
|
||||
{
|
||||
return md5($entity->getName());
|
||||
}
|
||||
|
@ -10,6 +10,8 @@ use Doctrine\Tests\Mocks\ConnectionMock;
|
||||
use Doctrine\Tests\Mocks\DriverMock;
|
||||
use Doctrine\ORM\Mapping\ClassMetadata;
|
||||
use Doctrine\Common\EventManager;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Doctrine\ORM\Id\AbstractIdGenerator;
|
||||
use Doctrine\ORM\Mapping\ClassMetadataFactory;
|
||||
|
||||
class ClassMetadataFactoryTest extends \Doctrine\Tests\OrmTestCase
|
||||
@ -410,9 +412,9 @@ class TestEntity1
|
||||
private $association;
|
||||
}
|
||||
|
||||
class CustomIdGenerator extends \Doctrine\ORM\Id\AbstractIdGenerator
|
||||
class CustomIdGenerator extends AbstractIdGenerator
|
||||
{
|
||||
public function generate(\Doctrine\ORM\EntityManager $em, $entity)
|
||||
public function generate(EntityManagerInterface $em, $entity)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user