fix: Fix return types in tests.

This commit is contained in:
Pol Dellaiera
2021-12-21 15:19:36 +01:00
parent 58a13d932f
commit 70ca203e23
67 changed files with 76 additions and 76 deletions

View File

@@ -59,7 +59,7 @@ final class AccompanyingCourseApiControllerTest extends WebTestCase
/**
* Setup before each test method (see phpunit doc).
*/
public function setUp(): void
protected function setUp(): void
{
$this->client = self::createClient([], [
'PHP_AUTH_USER' => 'center a_social',

View File

@@ -32,7 +32,7 @@ final class AccompanyingCourseControllerTest extends WebTestCase
{
use PrepareClientTrait;
public function setUp(): void
protected function setUp(): void
{
parent::setUp();
self::bootKernel();

View File

@@ -64,7 +64,7 @@ final class AccompanyingPeriodControllerTest extends WebTestCase
/**
* Setup before each test method (see phpunit doc).
*/
public function setUp(): void
protected function setUp(): void
{
$this->client = self::createClient([], [
'PHP_AUTH_USER' => 'center a_social',
@@ -87,7 +87,7 @@ final class AccompanyingPeriodControllerTest extends WebTestCase
/**
* TearDown after each test method (see phpunit doc).
*/
public function tearDown()
protected function tearDown(): void
{
self::$em->refresh($this->person);
self::$em->remove($this->person);

View File

@@ -63,7 +63,7 @@ final class PersonAddressControllerTest extends WebTestCase
/**
* Prepare client and create a random person.
*/
public function setUp(): void
protected function setUp(): void
{
self::bootKernel();

View File

@@ -67,7 +67,7 @@ final class PersonControllerCreateTest extends WebTestCase
$em->flush();
}
public function setUp(): void
protected function setUp(): void
{
$this->client = $this->getClientAuthenticated();
}

View File

@@ -51,7 +51,7 @@ final class PersonControllerUpdateTest extends WebTestCase
/**
* Prepare client and create a random person.
*/
public function setUp(): void
protected function setUp(): void
{
self::bootKernel();
@@ -76,7 +76,7 @@ final class PersonControllerUpdateTest extends WebTestCase
$this->client = $this->getClientAuthenticated();
}
public function tearDown()
protected function tearDown(): void
{
$this->refreshPerson();
$this->em->remove($this->person);

View File

@@ -50,7 +50,7 @@ final class PersonControllerUpdateWithHiddenFieldsTest extends WebTestCase
/**
* Prepare client and create a random person.
*/
public function setUp(): void
protected function setUp(): void
{
self::bootKernel(['environment' => 'test_with_hidden_fields']);
@@ -83,7 +83,7 @@ final class PersonControllerUpdateWithHiddenFieldsTest extends WebTestCase
);
}
public function tearDown()
protected function tearDown(): void
{
$this->refreshPerson();
$this->em->remove($this->person);

View File

@@ -35,7 +35,7 @@ final class PersonControllerViewTest extends WebTestCase
*/
private $viewUrl;
public function setUp(): void
protected function setUp(): void
{
self::bootKernel();
@@ -57,7 +57,7 @@ final class PersonControllerViewTest extends WebTestCase
$this->viewUrl = '/en/person/' . $this->person->getId() . '/general';
}
public function tearDown()
protected function tearDown(): void
{
$this->refreshPerson();
$this->em->remove($this->person);

View File

@@ -35,7 +35,7 @@ final class PersonControllerViewWithHiddenFieldsTest extends WebTestCase
*/
private $viewUrl;
public function setUp(): void
protected function setUp(): void
{
self::bootKernel(['environment' => 'test_with_hidden_fields']);
@@ -57,7 +57,7 @@ final class PersonControllerViewWithHiddenFieldsTest extends WebTestCase
$this->viewUrl = '/en/person/' . $this->person->getId() . '/general';
}
public function tearDown()
protected function tearDown(): void
{
$this->refreshPerson();
$this->em->remove($this->person);

View File

@@ -20,7 +20,7 @@ use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
*/
final class PersonDuplicateControllerViewTest extends WebTestCase
{
public function setUp(): void
protected function setUp(): void
{
self::bootKernel();

View File

@@ -39,7 +39,7 @@ final class RelationshipApiControllerTest extends WebTestCase
*/
private ?array $relations = null;
public function setUp(): void
protected function setUp(): void
{
self::bootKernel();
$this->client = $this->getClientAuthenticated();

View File

@@ -26,7 +26,7 @@ final class SocialIssueApiControllerTest extends WebTestCase
{
use PrepareClientTrait;
public function setUp(): void
protected function setUp(): void
{
parent::setUp();