14
14
use SymfonyCasts \Bundle \ResetPassword \Model \ResetPasswordRequestInterface ;
15
15
use SymfonyCasts \Bundle \ResetPassword \Persistence \Repository \ResetPasswordRequestRepositoryTrait ;
16
16
use SymfonyCasts \Bundle \ResetPassword \Persistence \ResetPasswordRequestRepositoryInterface ;
17
+ use SymfonyCasts \Bundle \ResetPassword \Tests \Fixtures \Entity \ResetPasswordRequestTestFixture ;
17
18
18
19
/**
19
20
* @author Jesse Rushlow <[email protected] >
@@ -25,7 +26,6 @@ final class ResetPasswordRequestRepositoryTestFixture implements ResetPasswordRe
25
26
{
26
27
use ResetPasswordRequestRepositoryTrait;
27
28
28
- private const ENTITY = \SymfonyCasts \Bundle \ResetPassword \Tests \Fixtures \Entity \ResetPasswordRequestTestFixture::class;
29
29
private $ manager ;
30
30
31
31
public function __construct (EntityManagerInterface $ manager = null )
@@ -43,14 +43,14 @@ public function createResetPasswordRequest(
43
43
44
44
public function findOneBy (array $ criteria )
45
45
{
46
- $ persister = $ this ->manager ->getUnitOfWork ()->getEntityPersister (self :: ENTITY );
46
+ $ persister = $ this ->manager ->getUnitOfWork ()->getEntityPersister (ResetPasswordRequestTestFixture::class );
47
47
48
48
return $ persister ->load ($ criteria );
49
49
}
50
50
51
51
public function findAll ()
52
52
{
53
- $ persister = $ this ->manager ->getUnitOfWork ()->getEntityPersister (self :: ENTITY );
53
+ $ persister = $ this ->manager ->getUnitOfWork ()->getEntityPersister (ResetPasswordRequestTestFixture::class );
54
54
55
55
return $ persister ->loadAll ();
56
56
}
@@ -64,7 +64,7 @@ private function createQueryBuilder($alias, $indexBy = null): QueryBuilder
64
64
{
65
65
return $ this ->manager ->createQueryBuilder ()
66
66
->select ($ alias )
67
- ->from (self :: ENTITY , $ alias , $ indexBy )
67
+ ->from (ResetPasswordRequestTestFixture::class , $ alias , $ indexBy )
68
68
;
69
69
}
70
70
}
0 commit comments