mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
fix: Fix return types in tests.
This commit is contained in:
@@ -23,7 +23,7 @@ final class ParentRoleHelperTest extends KernelTestCase
|
||||
{
|
||||
private ParentRoleHelper $parentRoleHelper;
|
||||
|
||||
public function setUp()
|
||||
public function setUp(): void
|
||||
{
|
||||
self::bootKernel();
|
||||
$this->parentRoleHelper = self::$container->get(ParentRoleHelper::class);
|
||||
|
@@ -26,7 +26,7 @@ final class AddressControllerTest extends \Symfony\Bundle\FrameworkBundle\Test\W
|
||||
|
||||
private KernelBrowser $client;
|
||||
|
||||
public function setUp()
|
||||
public function setUp(): void
|
||||
{
|
||||
self::bootKernel();
|
||||
$this->client = $this->getClientAuthenticated();
|
||||
|
@@ -26,7 +26,7 @@ final class UserControllerTest extends WebTestCase
|
||||
|
||||
private array $toDelete = [];
|
||||
|
||||
public function setUp()
|
||||
public function setUp(): void
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
|
@@ -42,7 +42,7 @@ final class ExportManagerTest extends KernelTestCase
|
||||
*/
|
||||
private $prophet;
|
||||
|
||||
public function setUp()
|
||||
public function setUp(): void
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
|
@@ -27,7 +27,7 @@ final class PageTest extends KernelTestCase
|
||||
|
||||
protected $prophet;
|
||||
|
||||
public function setUp()
|
||||
public function setUp(): void
|
||||
{
|
||||
$this->prophet = new \Prophecy\Prophet();
|
||||
}
|
||||
|
@@ -28,7 +28,7 @@ final class PaginatorTest extends KernelTestCase
|
||||
|
||||
protected $prophet;
|
||||
|
||||
public function setUp()
|
||||
public function setUp(): void
|
||||
{
|
||||
$this->prophet = new \Prophecy\Prophet();
|
||||
}
|
||||
|
@@ -23,7 +23,7 @@ final class RouteLoaderTest extends KernelTestCase
|
||||
{
|
||||
private $router;
|
||||
|
||||
public function setUp()
|
||||
public function setUp(): void
|
||||
{
|
||||
self::bootKernel();
|
||||
$this->router = self::$kernel->getContainer()->get('router');
|
||||
|
@@ -24,7 +24,7 @@ final class AbstractSearchTest extends \PHPUnit\Framework\TestCase
|
||||
*/
|
||||
private $stub;
|
||||
|
||||
public function setUp()
|
||||
public function setUp(): void
|
||||
{
|
||||
$this->stub = $this->getMockForAbstractClass('Chill\MainBundle\Search\AbstractSearch');
|
||||
}
|
||||
|
@@ -26,7 +26,7 @@ final class SearchProviderTest extends TestCase
|
||||
*/
|
||||
private $search;
|
||||
|
||||
public function setUp()
|
||||
public function setUp(): void
|
||||
{
|
||||
$this->search = new SearchProvider();
|
||||
|
||||
|
@@ -38,7 +38,7 @@ final class AuthorizationHelperTest extends KernelTestCase
|
||||
use PrepareUserTrait;
|
||||
use ProphecyTrait;
|
||||
|
||||
public function setUp()
|
||||
public function setUp(): void
|
||||
{
|
||||
self::bootKernel();
|
||||
}
|
||||
|
@@ -25,7 +25,7 @@ final class TokenManagerTest extends KernelTestCase
|
||||
{
|
||||
protected $tokenManager;
|
||||
|
||||
public function setUp()
|
||||
public function setUp(): void
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
|
@@ -25,7 +25,7 @@ final class DefaultScopeResolverTest extends TestCase
|
||||
{
|
||||
private DefaultScopeResolver $scopeResolver;
|
||||
|
||||
public function setUp()
|
||||
public function setUp(): void
|
||||
{
|
||||
$this->scopeResolver = new DefaultScopeResolver();
|
||||
}
|
||||
|
@@ -26,7 +26,7 @@ final class ScopeResolverDispatcherTest extends TestCase
|
||||
{
|
||||
private ScopeResolverDispatcher $scopeResolverDispatcher;
|
||||
|
||||
public function setUp()
|
||||
public function setUp(): void
|
||||
{
|
||||
$this->scopeResolverDispatcher = new ScopeResolverDispatcher([new DefaultScopeResolver()]);
|
||||
}
|
||||
|
@@ -30,7 +30,7 @@ final class DateNormalizerTest extends KernelTestCase
|
||||
{
|
||||
private Prophet $prophet;
|
||||
|
||||
public function setUp()
|
||||
public function setUp(): void
|
||||
{
|
||||
$this->prophet = new Prophet();
|
||||
}
|
||||
|
@@ -32,7 +32,7 @@ final class MenuComposerTest extends KernelTestCase
|
||||
*/
|
||||
private $menuComposer;
|
||||
|
||||
public function setUp()
|
||||
public function setUp(): void
|
||||
{
|
||||
self::bootKernel(['environment' => 'test']);
|
||||
$this->menuComposer = self::$container
|
||||
|
Reference in New Issue
Block a user