mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 23:23:51 +00:00
fix: Fix return types in tests.
This commit is contained in:
@@ -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',
|
||||
|
@@ -32,7 +32,7 @@ final class AccompanyingCourseControllerTest extends WebTestCase
|
||||
{
|
||||
use PrepareClientTrait;
|
||||
|
||||
public function setUp(): void
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
self::bootKernel();
|
||||
|
@@ -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);
|
||||
|
@@ -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();
|
||||
|
||||
|
@@ -67,7 +67,7 @@ final class PersonControllerCreateTest extends WebTestCase
|
||||
$em->flush();
|
||||
}
|
||||
|
||||
public function setUp(): void
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->client = $this->getClientAuthenticated();
|
||||
}
|
||||
|
@@ -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);
|
||||
|
@@ -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);
|
||||
|
@@ -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);
|
||||
|
@@ -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);
|
||||
|
@@ -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();
|
||||
|
||||
|
@@ -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();
|
||||
|
@@ -26,7 +26,7 @@ final class SocialIssueApiControllerTest extends WebTestCase
|
||||
{
|
||||
use PrepareClientTrait;
|
||||
|
||||
public function setUp(): void
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
|
Reference in New Issue
Block a user