forked from sonata-project/SonataPageBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change Symfony\Bridge\Doctrine\RegistryInterface to Doctrine\Persiste…
…nce\ManagerRegistry
- Loading branch information
1 parent
e1da65b
commit e012144
Showing
3 changed files
with
10 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,12 +13,12 @@ | |
|
||
namespace Sonata\PageBundle\Tests\Model; | ||
|
||
use Doctrine\Persistence\ManagerRegistry; | ||
use PHPUnit\Framework\TestCase; | ||
use Sonata\BlockBundle\Model\Block; | ||
use Sonata\BlockBundle\Model\BlockInterface; | ||
use Sonata\BlockBundle\Model\BlockManagerInterface; | ||
use Sonata\PageBundle\Entity\BlockInteractor; | ||
use Symfony\Bridge\Doctrine\RegistryInterface; | ||
|
||
/** | ||
* @author Vincent Composieux <[email protected]> | ||
|
@@ -30,7 +30,7 @@ class BlockInteractorTest extends TestCase | |
*/ | ||
public function testCreateNewContainer() | ||
{ | ||
$registry = $this->createMock(RegistryInterface::class); | ||
$registry = $this->createMock(ManagerRegistry::class); | ||
|
||
$blockManager = $this->createMock(BlockManagerInterface::class); | ||
$blockManager->expects($this->any())->method('create')->willReturn(new Block()); | ||
|