Skip to content

Commit 1c2664f

Browse files
authored
Update http_client.rst
Testing Using HAR Files/ExternalArticleServiceTest should extend from Symfony\Bundle\FrameworkBundle\Test\KernelTestCase to access the container parameter.
1 parent 7fe811e commit 1c2664f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

http_client.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2248,11 +2248,11 @@ First, use a browser or HTTP client to perform the HTTP request(s) you want to
22482248
test. Then, save that information as a ``.har`` file somewhere in your application::
22492249

22502250
// ExternalArticleServiceTest.php
2251-
use PHPUnit\Framework\TestCase;
2251+
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
22522252
use Symfony\Component\HttpClient\MockHttpClient;
22532253
use Symfony\Component\HttpClient\Response\MockResponse;
22542254

2255-
final class ExternalArticleServiceTest extends TestCase
2255+
final class ExternalArticleServiceTest extends KernelTestCase
22562256
{
22572257
public function testSubmitData(): void
22582258
{

0 commit comments

Comments
 (0)