Skip to content

Commit

Permalink
refactor: set setUp() method modifier protected on tests (#1202)
Browse files Browse the repository at this point in the history
  • Loading branch information
spiralbot committed Jan 10, 2025
1 parent 61f453a commit 77d7dc3
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tests/BaseTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ abstract class BaseTestCase extends TestCase
{
protected ContainerInterface $container;

public function setUp(): void
protected function setUp(): void
{
$options = new Options();
$options->checkScope = false;
Expand Down
2 changes: 1 addition & 1 deletion tests/InputScopeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

final class InputScopeTest extends BaseTestCase
{
public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/Model/FilterProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

final class FilterProviderTest extends BaseTestCase
{
public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ final class PopulateDataFromEntityInterceptorTest extends BaseTestCase
{
private PopulateDataFromEntityInterceptor $interceptor;

public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/Model/Interceptor/ValidateFilterInterceptorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ final class ValidateFilterInterceptorTest extends BaseTestCase
private ValidateFilterInterceptor $interceptor;
private m\MockInterface $validationProvider;

public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/Model/Schema/AttributeMapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ final class AttributeMapperTest extends BaseTestCase
private m\LegacyMockInterface|m\MockInterface|FilterProviderInterface $provider;
private AttributeMapper $mapper;

public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/Model/Schema/BuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ final class BuilderTest extends BaseTestCase
{
private Builder $builder;

public function setUp(): void
protected function setUp(): void
{
parent::setUp();
$this->builder = new Builder();
Expand Down
2 changes: 1 addition & 1 deletion tests/Model/Schema/InputMapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final class InputMapperTest extends BaseTestCase
private m\LegacyMockInterface|m\MockInterface|FilterProviderInterface $provider;
private InputMapper $mapper;

public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand Down

0 comments on commit 77d7dc3

Please sign in to comment.