mirror of
https://github.com/shlinkio/shlink.git
synced 2025-03-27 12:01:49 +03:00
Removed unused mock
This commit is contained in:
parent
d99ea82761
commit
fe4e171ecb
1 changed files with 0 additions and 3 deletions
|
@ -6,7 +6,6 @@ namespace ShlinkioTest\Shlink\Core\Service;
|
||||||
|
|
||||||
use Cake\Chronos\Chronos;
|
use Cake\Chronos\Chronos;
|
||||||
use Doctrine\Common\Collections\ArrayCollection;
|
use Doctrine\Common\Collections\ArrayCollection;
|
||||||
use Doctrine\DBAL\Connection;
|
|
||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
use Prophecy\Argument;
|
use Prophecy\Argument;
|
||||||
|
@ -40,8 +39,6 @@ class UrlShortenerTest extends TestCase
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->em = $this->prophesize(EntityManagerInterface::class);
|
$this->em = $this->prophesize(EntityManagerInterface::class);
|
||||||
$conn = $this->prophesize(Connection::class);
|
|
||||||
$this->em->getConnection()->willReturn($conn->reveal());
|
|
||||||
$this->em->persist(Argument::any())->will(function ($arguments): void {
|
$this->em->persist(Argument::any())->will(function ($arguments): void {
|
||||||
/** @var ShortUrl $shortUrl */
|
/** @var ShortUrl $shortUrl */
|
||||||
[$shortUrl] = $arguments;
|
[$shortUrl] = $arguments;
|
||||||
|
|
Loading…
Add table
Reference in a new issue