You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
animegame/tests/Controller/RestTestBase.php

20 lines
431 B

<?php
namespace App\Tests\Controller;
use Symfony\Component\BrowserKit\Client;
class RestTestBase extends WebTestCase
{
/**
* @var Client
*/
private $client;
protected function createRequestBuilder(string $acceptType = 'application/json'): ClientRequestBuilder
{
$builder = new ClientRequestBuilder($this->client);
$builder->setAcceptType($acceptType);
return $builder;
}
}