Skip to content

Commit ef277c9

Browse files
phansysfranmomu
authored andcommitted
Reduce constant visibility under tests/
1 parent f21d888 commit ef277c9

File tree

120 files changed

+310
-330
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+310
-330
lines changed

tests/Gedmo/Blameable/BlameableDocumentTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,9 @@
2525
*/
2626
final class BlameableDocumentTest extends BaseTestCaseMongoODM
2727
{
28-
public const TEST_USERNAME = 'testuser';
28+
private const TEST_USERNAME = 'testuser';
2929

30-
public const TYPE = Type::class;
31-
public const USER = User::class;
32-
public const ARTICLE = Article::class;
30+
private const ARTICLE = Article::class;
3331

3432
protected function setUp(): void
3533
{

tests/Gedmo/Blameable/BlameableTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
*/
2727
final class BlameableTest extends BaseTestCaseORM
2828
{
29-
public const ARTICLE = Article::class;
30-
public const COMMENT = Comment::class;
31-
public const TYPE = Type::class;
29+
private const ARTICLE = Article::class;
30+
private const COMMENT = Comment::class;
31+
private const TYPE = Type::class;
3232

3333
protected function setUp(): void
3434
{

tests/Gedmo/Blameable/ChangeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*/
2424
final class ChangeTest extends BaseTestCaseORM
2525
{
26-
public const FIXTURE = TitledArticle::class;
26+
private const FIXTURE = TitledArticle::class;
2727

2828
/**
2929
* @var BlameableListener

tests/Gedmo/Blameable/NoInterfaceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*/
2424
final class NoInterfaceTest extends BaseTestCaseORM
2525
{
26-
public const FIXTURE = WithoutInterface::class;
26+
private const FIXTURE = WithoutInterface::class;
2727

2828
protected function setUp(): void
2929
{

tests/Gedmo/Blameable/NoUserTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*/
2424
final class NoUserTest extends BaseTestCaseMongoODM
2525
{
26-
public const ARTICLE = Article::class;
26+
private const ARTICLE = Article::class;
2727

2828
protected function setUp(): void
2929
{

tests/Gedmo/Blameable/ProtectedPropertySupperclassTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
*/
2626
final class ProtectedPropertySupperclassTest extends BaseTestCaseORM
2727
{
28-
public const SUPERCLASS = SupperClassExtension::class;
29-
public const TRANSLATION = Translation::class;
28+
private const SUPERCLASS = SupperClassExtension::class;
29+
private const TRANSLATION = Translation::class;
3030

3131
protected function setUp(): void
3232
{

tests/Gedmo/Blameable/TraitUsageTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*/
2424
final class TraitUsageTest extends BaseTestCaseORM
2525
{
26-
public const TARGET = UsingTrait::class;
26+
private const TARGET = UsingTrait::class;
2727

2828
protected function setUp(): void
2929
{

tests/Gedmo/IpTraceable/ChangeTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
*/
2424
final class ChangeTest extends BaseTestCaseORM
2525
{
26-
public const TEST_IP = '34.234.1.10';
27-
public const FIXTURE = TitledArticle::class;
26+
private const TEST_IP = '34.234.1.10';
27+
private const FIXTURE = TitledArticle::class;
2828

2929
/**
3030
* @var IpTraceableListener

tests/Gedmo/IpTraceable/IpTraceableDocumentTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,9 @@
2424
*/
2525
final class IpTraceableDocumentTest extends BaseTestCaseMongoODM
2626
{
27-
public const TEST_IP = '34.234.1.10';
27+
private const TEST_IP = '34.234.1.10';
2828

29-
public const ARTICLE = Article::class;
30-
public const TYPE = Type::class;
29+
private const ARTICLE = Article::class;
3130

3231
protected function setUp(): void
3332
{

tests/Gedmo/IpTraceable/IpTraceableTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@
2929
*/
3030
final class IpTraceableTest extends BaseTestCaseORM
3131
{
32-
public const TEST_IP = '34.234.1.10';
32+
private const TEST_IP = '34.234.1.10';
3333

34-
public const ARTICLE = Article::class;
35-
public const COMMENT = Comment::class;
36-
public const TYPE = Type::class;
34+
private const ARTICLE = Article::class;
35+
private const COMMENT = Comment::class;
36+
private const TYPE = Type::class;
3737

3838
protected function setUp(): void
3939
{

0 commit comments

Comments
 (0)