-
-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* use doctrine/bundle 2 * use doctrine/bundle 2 * Blacklist symfony/dependency-injection 4.4 * Symfony 3.4 compatibility * Fixed usage of RegistryInterface in tests * Add doctrine/persistence dependency * version constraint on doctrine/doctrine-bundle matching doctrine/persistence * version constraint of doctrine/doctrine-bundle Co-Authored-By: Javier Spagnoletti <[email protected]> Co-authored-by: Javier Spagnoletti <[email protected]>
- Loading branch information
Showing
4 changed files
with
11 additions
and
10 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
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\Common\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()); | ||
|