Починил тесты

master
Rinsvent 3 years ago
parent 14746a88bc
commit 76aa1dda48
  1. 3
      tests/unit/Listener/FillTest.php

@ -3,6 +3,7 @@
namespace Rinsvent\RequestBundle\Tests\Listener; namespace Rinsvent\RequestBundle\Tests\Listener;
use Rinsvent\RequestBundle\Tests\unit\Listener\fixtures\FillTest\Controller; use Rinsvent\RequestBundle\Tests\unit\Listener\fixtures\FillTest\Controller;
use Rinsvent\RequestBundle\Tests\unit\Listener\fixtures\FillTest\HelloRequest;
use Symfony\Component\EventDispatcher\EventDispatcher; use Symfony\Component\EventDispatcher\EventDispatcher;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\RequestStack; use Symfony\Component\HttpFoundation\RequestStack;
@ -41,7 +42,7 @@ class GenerateTest extends \Codeception\Test\Unit
]); ]);
$response = $this->send($request); $response = $this->send($request);
$this->assertEquals(3, $request->get('form')); $this->assertEquals('Surname', $request->get(HelloRequest::class)->surname);
} }
private function send(Request $request): Response private function send(Request $request): Response

Loading…
Cancel
Save