Skip to content

Commit 6413c66

Browse files
committed
adjust to phpunit 8
1 parent 0ad34c6 commit 6413c66

File tree

10 files changed

+11
-11
lines changed

10 files changed

+11
-11
lines changed

tests/Functional/DependencyInjection/CmfCoreExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class CmfCoreExtensionTest extends TestCase
2323
*/
2424
private $container;
2525

26-
protected function setUp()
26+
protected function setUp(): void
2727
{
2828
$this->container = new ContainerBuilder();
2929
$this->container->registerExtension(new CmfCoreExtension());

tests/Functional/Form/CheckboxUrlLabelFormTypeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
class CheckboxUrlLabelFormTypeTest extends BaseTestCase
2525
{
26-
public function setUp()
26+
public function setUp(): void
2727
{
2828
$this->db('PHPCR')->loadFixtures([LoadRouteData::class]);
2929
}

tests/Functional/PublishWorkflow/PublishWorkflowTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class PublishWorkflowTest extends BaseTestCase
2626
*/
2727
private $publishWorkflowChecker;
2828

29-
public function setUp()
29+
public function setUp(): void
3030
{
3131
$this->publishWorkflowChecker = $this->getContainer()->get('cmf_core.publish_workflow.checker');
3232
}

tests/Functional/Templating/Helper/CmfHierarchyTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class CmfHierarchyTest extends BaseTestCase
3131
*/
3232
private $helper;
3333

34-
public function setUp()
34+
public function setUp(): void
3535
{
3636
$dbManager = $this->db('PHPCR');
3737
$dbManager->loadFixtures([LoadHierarchyRouteData::class]);

tests/Unit/DependencyInjection/CmfCoreExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class CmfCoreExtensionTest extends TestCase
2828
*/
2929
protected $extension;
3030

31-
protected function setUp()
31+
protected function setUp(): void
3232
{
3333
$this->extension = new CmfCoreExtension();
3434
}

tests/Unit/PublishWorkflow/PublishWorkflowCheckerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class PublishWorkflowCheckerTest extends TestCase
3333

3434
private $tokenStorage;
3535

36-
public function setUp()
36+
public function setUp(): void
3737
{
3838
$this->role = 'IS_FOOBAR';
3939
$this->authorizationChecker = \Mockery::mock(AuthorizationCheckerInterface::class);
@@ -49,7 +49,7 @@ public function setUp()
4949
);
5050
}
5151

52-
protected function tearDown()
52+
protected function tearDown(): void
5353
{
5454
\Mockery::close();
5555
}

tests/Unit/PublishWorkflow/Voter/PublishTimePeriodVoterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class PublishTimePeriodVoterTest extends TestCase
3131
*/
3232
private $token;
3333

34-
public function setUp()
34+
public function setUp(): void
3535
{
3636
$this->voter = new PublishTimePeriodVoter();
3737
$this->token = new AnonymousToken('', '');

tests/Unit/PublishWorkflow/Voter/PublishableVoterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class PublishableVoterTest extends TestCase
3131
*/
3232
private $token;
3333

34-
public function setUp()
34+
public function setUp(): void
3535
{
3636
$this->voter = new PublishableVoter();
3737
$this->token = new AnonymousToken('', '');

tests/Unit/Templating/Helper/CmfTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class CmfTest extends TestCase
3737
*/
3838
private $helper;
3939

40-
public function setUp()
40+
public function setUp(): void
4141
{
4242
$this->pwc = $this->createMock(AuthorizationCheckerInterface::class);
4343

tests/Unit/Twig/Extension/CmfExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class CmfExtensionTest extends TestCase
3333
*/
3434
private $cmfExtension;
3535

36-
public function setUp()
36+
public function setUp(): void
3737
{
3838
$this->cmfHelper = $this->createMock(Cmf::class);
3939

0 commit comments

Comments
 (0)