mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
Fix some PHPUnit tests
This commit is contained in:
parent
217feb032c
commit
ba3a7dd095
3 changed files with 5 additions and 6 deletions
|
|
@ -74,7 +74,7 @@
|
|||
"sylius-labs/doctrine-migrations-extra-bundle": "^0.1.4",
|
||||
"sylius-labs/polyfill-symfony-event-dispatcher": "^1.0.1",
|
||||
"sylius-labs/polyfill-symfony-framework-bundle": "^1.0",
|
||||
"sylius-labs/polyfill-symfony-security": "^1.0",
|
||||
"sylius-labs/polyfill-symfony-security": "dev-master",
|
||||
"sylius/calendar": "^0.3",
|
||||
"sylius/fixtures-bundle": "^1.6.1",
|
||||
"sylius/grid": "^1.11",
|
||||
|
|
|
|||
|
|
@ -140,9 +140,8 @@ final class CircularDependencyBreakingErrorListenerTest extends TestCase
|
|||
private function createExceptionEvent(): ExceptionEvent
|
||||
{
|
||||
$kernel = $this->createMock(HttpKernelInterface::class);
|
||||
$request = $this->createMock(Request::class);
|
||||
$exception = new \Exception();
|
||||
|
||||
return new ExceptionEvent($kernel, $request, HttpKernelInterface::MASTER_REQUEST, $exception);
|
||||
return new ExceptionEvent($kernel, new Request(), HttpKernelInterface::MAIN_REQUEST, $exception);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,13 +38,13 @@ final class OrderEmailManagerTest extends KernelTestCase
|
|||
static::bootKernel();
|
||||
|
||||
/** @var Filesystem $filesystem */
|
||||
$filesystem = static::$kernel->getContainer()->get('filesystem');
|
||||
$filesystem = $this->getContainer()->get('filesystem');
|
||||
|
||||
/** @var TranslatorInterface $translator */
|
||||
$translator = static::$kernel->getContainer()->get('translator');
|
||||
$translator = $this->getContainer()->get('translator');
|
||||
|
||||
/** @var EmailChecker $emailChecker */
|
||||
$emailChecker = static::$kernel->getContainer()->get('sylius.behat.email_checker');
|
||||
$emailChecker = $this->getContainer()->get('sylius.behat.email_checker');
|
||||
|
||||
$filesystem->remove($emailChecker->getSpoolDirectory());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue