Rector changes and immplementations of required methods

This commit is contained in:
2025-05-22 17:47:07 +02:00
parent 053b92b77c
commit 17db59d221
1138 changed files with 2656 additions and 2616 deletions

View File

@@ -66,7 +66,7 @@ final class ParticipationControllerTest extends WebTestCase
*
* Those request should fail before any processing.
*/
public function testCreateActionWrongParameters()
public function testCreateActionWrongParameters(): void
{
$client = $this->getClientAuthenticated();
$this->prepareDI();
@@ -138,7 +138,7 @@ final class ParticipationControllerTest extends WebTestCase
);
}
public function testEditMultipleAction()
public function testEditMultipleAction(): void
{
$client = $this->getClientAuthenticated();
$this->prepareDI();
@@ -165,7 +165,7 @@ final class ParticipationControllerTest extends WebTestCase
->isRedirect('/fr/event/event/'.$event->getId().'/show'));
}
public function testNewActionWrongParameters()
public function testNewActionWrongParameters(): void
{
$client = $this->getClientAuthenticated();
$this->prepareDI();
@@ -237,7 +237,7 @@ final class ParticipationControllerTest extends WebTestCase
);
}
public function testNewMultipleAction()
public function testNewMultipleAction(): void
{
$client = $this->getClientAuthenticated();
$this->prepareDI();
@@ -307,7 +307,7 @@ final class ParticipationControllerTest extends WebTestCase
$this->assertEquals($nbParticipations + 2, $event->getParticipations()->count());
}
public function testNewMultipleWithAllPeopleParticipating()
public function testNewMultipleWithAllPeopleParticipating(): void
{
$client = $this->getClientAuthenticated();
$this->prepareDI();
@@ -333,7 +333,7 @@ final class ParticipationControllerTest extends WebTestCase
);
}
public function testNewMultipleWithSomePeopleParticipating()
public function testNewMultipleWithSomePeopleParticipating(): void
{
$client = $this->getClientAuthenticated();
$this->prepareDI();
@@ -409,7 +409,7 @@ final class ParticipationControllerTest extends WebTestCase
);
}
public function testNewSingleAction()
public function testNewSingleAction(): void
{
$client = $this->getClientAuthenticated();
$this->prepareDI();

View File

@@ -35,7 +35,7 @@ class EventDateFilterTest extends AbstractFilterTest
$this->rollingDateConverter = self::getContainer()->get(RollingDateConverterInterface::class);
}
public function getFilter()
public function getFilter(): \Chill\EventBundle\Export\Filter\EventDateFilter
{
return new EventDateFilter($this->rollingDateConverter);
}

View File

@@ -35,7 +35,7 @@ class RoleFilterTest extends AbstractFilterTest
$this->filter = self::getContainer()->get(RoleFilter::class);
}
public function getFilter()
public function getFilter(): \Chill\EventBundle\Export\Filter\RoleFilter
{
return $this->filter;
}

View File

@@ -107,7 +107,7 @@ final class EventSearchTest extends WebTestCase
$this->events = [];
}
public function testDisplayAll()
public function testDisplayAll(): void
{
$crawler = $this->client->request('GET', '/fr/search', [
'q' => '@events',
@@ -124,7 +124,7 @@ final class EventSearchTest extends WebTestCase
* Test that a user connected with an user with the wrong center does not
* see the events.
*/
public function testDisplayAllWrongUser()
public function testDisplayAllWrongUser(): void
{
$client = self::createClient([], [
'PHP_AUTH_USER' => 'center b_social',
@@ -143,7 +143,7 @@ final class EventSearchTest extends WebTestCase
);
}
public function testSearchByDateDateBetween()
public function testSearchByDateDateBetween(): void
{
// serach with date from **and** date-to
$crawler = $this->client->request('GET', '/fr/search', [
@@ -190,7 +190,7 @@ final class EventSearchTest extends WebTestCase
});
}
public function testSearchByDateDateFromOnly()
public function testSearchByDateDateFromOnly(): void
{
// search with date from
$crawler = $this->client->request('GET', '/fr/search', [
@@ -225,7 +225,7 @@ final class EventSearchTest extends WebTestCase
});
}
public function testSearchByDateDateTo()
public function testSearchByDateDateTo(): void
{
// serach with date from **and** date-to
$crawler = $this->client->request('GET', '/fr/search', [
@@ -265,7 +265,7 @@ final class EventSearchTest extends WebTestCase
});
}
public function testSearchByDefault()
public function testSearchByDefault(): void
{
$crawler = $this->client->request('GET', '/fr/search', [
'q' => '@events printemps',
@@ -284,7 +284,7 @@ final class EventSearchTest extends WebTestCase
);
}
public function testSearchByName()
public function testSearchByName(): void
{
$crawler = $this->client->request('GET', '/fr/search', [
'q' => '@events name:printemps',
@@ -303,7 +303,7 @@ final class EventSearchTest extends WebTestCase
);
}
protected function createEvents()
protected function createEvents(): void
{
$event1 = (new Event())
->setCenter($this->centerA)