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.
20 lines
431 B
20 lines
431 B
6 years ago
|
<?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;
|
||
|
}
|
||
|
}
|