diff --git a/tests/Gedmo/Blameable/BlameableDocumentTest.php b/tests/Gedmo/Blameable/BlameableDocumentTest.php index c9cd05b40b..80f1e5b2d4 100644 --- a/tests/Gedmo/Blameable/BlameableDocumentTest.php +++ b/tests/Gedmo/Blameable/BlameableDocumentTest.php @@ -25,11 +25,9 @@ */ final class BlameableDocumentTest extends BaseTestCaseMongoODM { - public const TEST_USERNAME = 'testuser'; + private const TEST_USERNAME = 'testuser'; - public const TYPE = Type::class; - public const USER = User::class; - public const ARTICLE = Article::class; + private const ARTICLE = Article::class; protected function setUp(): void { diff --git a/tests/Gedmo/Blameable/BlameableTest.php b/tests/Gedmo/Blameable/BlameableTest.php index c85da45ad2..4919944152 100644 --- a/tests/Gedmo/Blameable/BlameableTest.php +++ b/tests/Gedmo/Blameable/BlameableTest.php @@ -26,9 +26,9 @@ */ final class BlameableTest extends BaseTestCaseORM { - public const ARTICLE = Article::class; - public const COMMENT = Comment::class; - public const TYPE = Type::class; + private const ARTICLE = Article::class; + private const COMMENT = Comment::class; + private const TYPE = Type::class; protected function setUp(): void { diff --git a/tests/Gedmo/Blameable/ChangeTest.php b/tests/Gedmo/Blameable/ChangeTest.php index e6aeeb5916..c625dda007 100644 --- a/tests/Gedmo/Blameable/ChangeTest.php +++ b/tests/Gedmo/Blameable/ChangeTest.php @@ -23,7 +23,7 @@ */ final class ChangeTest extends BaseTestCaseORM { - public const FIXTURE = TitledArticle::class; + private const FIXTURE = TitledArticle::class; /** * @var BlameableListener diff --git a/tests/Gedmo/Blameable/NoInterfaceTest.php b/tests/Gedmo/Blameable/NoInterfaceTest.php index fcec308902..61a740000f 100644 --- a/tests/Gedmo/Blameable/NoInterfaceTest.php +++ b/tests/Gedmo/Blameable/NoInterfaceTest.php @@ -23,7 +23,7 @@ */ final class NoInterfaceTest extends BaseTestCaseORM { - public const FIXTURE = WithoutInterface::class; + private const FIXTURE = WithoutInterface::class; protected function setUp(): void { diff --git a/tests/Gedmo/Blameable/NoUserTest.php b/tests/Gedmo/Blameable/NoUserTest.php index 518f39e65a..bb18e9e6e5 100644 --- a/tests/Gedmo/Blameable/NoUserTest.php +++ b/tests/Gedmo/Blameable/NoUserTest.php @@ -23,7 +23,7 @@ */ final class NoUserTest extends BaseTestCaseMongoODM { - public const ARTICLE = Article::class; + private const ARTICLE = Article::class; protected function setUp(): void { diff --git a/tests/Gedmo/Blameable/ProtectedPropertySupperclassTest.php b/tests/Gedmo/Blameable/ProtectedPropertySupperclassTest.php index 0713495d31..a44a4356ea 100644 --- a/tests/Gedmo/Blameable/ProtectedPropertySupperclassTest.php +++ b/tests/Gedmo/Blameable/ProtectedPropertySupperclassTest.php @@ -25,8 +25,8 @@ */ final class ProtectedPropertySupperclassTest extends BaseTestCaseORM { - public const SUPERCLASS = SupperClassExtension::class; - public const TRANSLATION = Translation::class; + private const SUPERCLASS = SupperClassExtension::class; + private const TRANSLATION = Translation::class; protected function setUp(): void { diff --git a/tests/Gedmo/Blameable/TraitUsageTest.php b/tests/Gedmo/Blameable/TraitUsageTest.php index 2e20f620f9..c0e8ae4abd 100644 --- a/tests/Gedmo/Blameable/TraitUsageTest.php +++ b/tests/Gedmo/Blameable/TraitUsageTest.php @@ -23,7 +23,7 @@ */ final class TraitUsageTest extends BaseTestCaseORM { - public const TARGET = UsingTrait::class; + private const TARGET = UsingTrait::class; protected function setUp(): void { diff --git a/tests/Gedmo/IpTraceable/ChangeTest.php b/tests/Gedmo/IpTraceable/ChangeTest.php index d18b641666..e677207b99 100644 --- a/tests/Gedmo/IpTraceable/ChangeTest.php +++ b/tests/Gedmo/IpTraceable/ChangeTest.php @@ -23,8 +23,8 @@ */ final class ChangeTest extends BaseTestCaseORM { - public const TEST_IP = '34.234.1.10'; - public const FIXTURE = TitledArticle::class; + private const TEST_IP = '34.234.1.10'; + private const FIXTURE = TitledArticle::class; /** * @var IpTraceableListener diff --git a/tests/Gedmo/IpTraceable/IpTraceableDocumentTest.php b/tests/Gedmo/IpTraceable/IpTraceableDocumentTest.php index 30416fb171..488fb4adbc 100644 --- a/tests/Gedmo/IpTraceable/IpTraceableDocumentTest.php +++ b/tests/Gedmo/IpTraceable/IpTraceableDocumentTest.php @@ -24,10 +24,9 @@ */ final class IpTraceableDocumentTest extends BaseTestCaseMongoODM { - public const TEST_IP = '34.234.1.10'; + private const TEST_IP = '34.234.1.10'; - public const ARTICLE = Article::class; - public const TYPE = Type::class; + private const ARTICLE = Article::class; protected function setUp(): void { diff --git a/tests/Gedmo/IpTraceable/IpTraceableTest.php b/tests/Gedmo/IpTraceable/IpTraceableTest.php index f4b4a27a31..a2f87e165b 100644 --- a/tests/Gedmo/IpTraceable/IpTraceableTest.php +++ b/tests/Gedmo/IpTraceable/IpTraceableTest.php @@ -29,11 +29,11 @@ */ final class IpTraceableTest extends BaseTestCaseORM { - public const TEST_IP = '34.234.1.10'; + private const TEST_IP = '34.234.1.10'; - public const ARTICLE = Article::class; - public const COMMENT = Comment::class; - public const TYPE = Type::class; + private const ARTICLE = Article::class; + private const COMMENT = Comment::class; + private const TYPE = Type::class; protected function setUp(): void { diff --git a/tests/Gedmo/IpTraceable/NoInterfaceTest.php b/tests/Gedmo/IpTraceable/NoInterfaceTest.php index 8f7496565d..d096c78a31 100644 --- a/tests/Gedmo/IpTraceable/NoInterfaceTest.php +++ b/tests/Gedmo/IpTraceable/NoInterfaceTest.php @@ -23,8 +23,8 @@ */ final class NoInterfaceTest extends BaseTestCaseORM { - public const TEST_IP = '34.234.1.10'; - public const FIXTURE = WithoutInterface::class; + private const TEST_IP = '34.234.1.10'; + private const FIXTURE = WithoutInterface::class; protected function setUp(): void { diff --git a/tests/Gedmo/IpTraceable/TraitUsageTest.php b/tests/Gedmo/IpTraceable/TraitUsageTest.php index c3b0dab435..e6ac8e782c 100644 --- a/tests/Gedmo/IpTraceable/TraitUsageTest.php +++ b/tests/Gedmo/IpTraceable/TraitUsageTest.php @@ -23,8 +23,8 @@ */ final class TraitUsageTest extends BaseTestCaseORM { - public const TEST_IP = '34.234.1.10'; - public const TARGET = UsingTrait::class; + private const TEST_IP = '34.234.1.10'; + private const TARGET = UsingTrait::class; protected function setUp(): void { diff --git a/tests/Gedmo/Loggable/LoggableDocumentTest.php b/tests/Gedmo/Loggable/LoggableDocumentTest.php index 2c2bb2b345..fa5d778111 100644 --- a/tests/Gedmo/Loggable/LoggableDocumentTest.php +++ b/tests/Gedmo/Loggable/LoggableDocumentTest.php @@ -29,10 +29,9 @@ */ final class LoggableDocumentTest extends BaseTestCaseMongoODM { - public const ARTICLE = Article::class; - public const COMMENT = Comment::class; - public const RELATED_ARTICLE = RelatedArticle::class; - public const COMMENT_LOG = \Gedmo\Tests\Loggable\Fixture\Document\Log\Comment::class; + private const ARTICLE = Article::class; + private const COMMENT = Comment::class; + private const COMMENT_LOG = \Gedmo\Tests\Loggable\Fixture\Document\Log\Comment::class; protected function setUp(): void { diff --git a/tests/Gedmo/Loggable/LoggableEntityTest.php b/tests/Gedmo/Loggable/LoggableEntityTest.php index 2de1abe090..b202b26c21 100644 --- a/tests/Gedmo/Loggable/LoggableEntityTest.php +++ b/tests/Gedmo/Loggable/LoggableEntityTest.php @@ -30,12 +30,12 @@ */ abstract class LoggableEntityTest extends BaseTestCaseORM { - public const ARTICLE = Article::class; - public const COMMENT = Comment::class; - public const COMPOSITE = Composite::class; - public const COMPOSITE_RELATION = CompositeRelation::class; - public const RELATED_ARTICLE = RelatedArticle::class; - public const COMMENT_LOG = \Gedmo\Tests\Loggable\Fixture\Entity\Log\Comment::class; + private const ARTICLE = Article::class; + private const COMMENT = Comment::class; + private const COMPOSITE = Composite::class; + private const COMPOSITE_RELATION = CompositeRelation::class; + private const RELATED_ARTICLE = RelatedArticle::class; + private const COMMENT_LOG = \Gedmo\Tests\Loggable\Fixture\Entity\Log\Comment::class; public function testShouldHandleClonedEntity(): void { diff --git a/tests/Gedmo/Mapping/ExtensionODMTest.php b/tests/Gedmo/Mapping/ExtensionODMTest.php index f03937a10a..701595c6f9 100644 --- a/tests/Gedmo/Mapping/ExtensionODMTest.php +++ b/tests/Gedmo/Mapping/ExtensionODMTest.php @@ -21,7 +21,7 @@ final class ExtensionODMTest extends BaseTestCaseMongoODM { - public const USER = User::class; + private const USER = User::class; /** * @var EncoderListener diff --git a/tests/Gedmo/Mapping/ExtensionORMTest.php b/tests/Gedmo/Mapping/ExtensionORMTest.php index 9b562d3f51..c654942e5d 100644 --- a/tests/Gedmo/Mapping/ExtensionORMTest.php +++ b/tests/Gedmo/Mapping/ExtensionORMTest.php @@ -21,7 +21,7 @@ final class ExtensionORMTest extends BaseTestCaseORM { - public const USER = User::class; + private const USER = User::class; /** * @var EncoderListener diff --git a/tests/Gedmo/Mapping/LoggableORMMappingTest.php b/tests/Gedmo/Mapping/LoggableORMMappingTest.php index f3944dc1d9..1fce3b345e 100644 --- a/tests/Gedmo/Mapping/LoggableORMMappingTest.php +++ b/tests/Gedmo/Mapping/LoggableORMMappingTest.php @@ -31,9 +31,9 @@ */ final class LoggableORMMappingTest extends ORMMappingTestCase { - public const YAML_CATEGORY = Category::class; - public const COMPOSITE = LoggableComposite::class; - public const COMPOSITE_RELATION = LoggableCompositeRelation::class; + private const YAML_CATEGORY = Category::class; + private const COMPOSITE = LoggableComposite::class; + private const COMPOSITE_RELATION = LoggableCompositeRelation::class; /** * @var EntityManager diff --git a/tests/Gedmo/Mapping/MappingTest.php b/tests/Gedmo/Mapping/MappingTest.php index a143be5f84..bb64e4e075 100644 --- a/tests/Gedmo/Mapping/MappingTest.php +++ b/tests/Gedmo/Mapping/MappingTest.php @@ -31,8 +31,8 @@ */ final class MappingTest extends TestCase { - public const TEST_ENTITY_CATEGORY = BehavioralCategory::class; - public const TEST_ENTITY_TRANSLATION = Translation::class; + private const TEST_ENTITY_CATEGORY = BehavioralCategory::class; + private const TEST_ENTITY_TRANSLATION = Translation::class; /** * @var EntityManager diff --git a/tests/Gedmo/Mapping/SluggableMappingTest.php b/tests/Gedmo/Mapping/SluggableMappingTest.php index 0697de8cf9..ffad7a04c0 100644 --- a/tests/Gedmo/Mapping/SluggableMappingTest.php +++ b/tests/Gedmo/Mapping/SluggableMappingTest.php @@ -31,8 +31,8 @@ */ final class SluggableMappingTest extends ORMMappingTestCase { - public const TEST_YAML_ENTITY_CLASS = Category::class; - public const SLUGGABLE = Sluggable::class; + private const TEST_YAML_ENTITY_CLASS = Category::class; + private const SLUGGABLE = Sluggable::class; /** * @var EntityManager diff --git a/tests/Gedmo/Mapping/TimestampableMappingTest.php b/tests/Gedmo/Mapping/TimestampableMappingTest.php index 2183419a11..c05e3871ca 100644 --- a/tests/Gedmo/Mapping/TimestampableMappingTest.php +++ b/tests/Gedmo/Mapping/TimestampableMappingTest.php @@ -26,7 +26,7 @@ */ final class TimestampableMappingTest extends ORMMappingTestCase { - public const TEST_YAML_ENTITY_CLASS = Category::class; + private const TEST_YAML_ENTITY_CLASS = Category::class; /** * @var EntityManager diff --git a/tests/Gedmo/Mapping/TranslatableMappingTest.php b/tests/Gedmo/Mapping/TranslatableMappingTest.php index 5482370788..2d525893e7 100644 --- a/tests/Gedmo/Mapping/TranslatableMappingTest.php +++ b/tests/Gedmo/Mapping/TranslatableMappingTest.php @@ -28,7 +28,7 @@ */ final class TranslatableMappingTest extends ORMMappingTestCase { - public const TEST_YAML_ENTITY_CLASS = User::class; + private const TEST_YAML_ENTITY_CLASS = User::class; /** * @var TranslatableListener diff --git a/tests/Gedmo/Mapping/TreeMappingTest.php b/tests/Gedmo/Mapping/TreeMappingTest.php index 5d20c920f6..f5ea51c986 100644 --- a/tests/Gedmo/Mapping/TreeMappingTest.php +++ b/tests/Gedmo/Mapping/TreeMappingTest.php @@ -29,9 +29,9 @@ */ final class TreeMappingTest extends ORMMappingTestCase { - public const TEST_YAML_ENTITY_CLASS = Category::class; - public const YAML_CLOSURE_CATEGORY = ClosureCategory::class; - public const YAML_MATERIALIZED_PATH_CATEGORY = MaterializedPathCategory::class; + private const TEST_YAML_ENTITY_CLASS = Category::class; + private const YAML_CLOSURE_CATEGORY = ClosureCategory::class; + private const YAML_MATERIALIZED_PATH_CATEGORY = MaterializedPathCategory::class; /** * @var EntityManager diff --git a/tests/Gedmo/ReferenceIntegrity/ReferenceIntegrityDocumentTest.php b/tests/Gedmo/ReferenceIntegrity/ReferenceIntegrityDocumentTest.php index 6bcdfa3180..8bba0eefdb 100644 --- a/tests/Gedmo/ReferenceIntegrity/ReferenceIntegrityDocumentTest.php +++ b/tests/Gedmo/ReferenceIntegrity/ReferenceIntegrityDocumentTest.php @@ -25,23 +25,23 @@ */ final class ReferenceIntegrityDocumentTest extends BaseTestCaseMongoODM { - public const TYPE_ONE_NULLIFY_CLASS = Fixture\Document\OneNullify\Type::class; - public const ARTICLE_ONE_NULLIFY_CLASS = Fixture\Document\OneNullify\Article::class; + private const TYPE_ONE_NULLIFY_CLASS = Fixture\Document\OneNullify\Type::class; + private const ARTICLE_ONE_NULLIFY_CLASS = Fixture\Document\OneNullify\Article::class; - public const TYPE_MANY_NULLIFY_CLASS = Fixture\Document\ManyNullify\Type::class; - public const ARTICLE_MANY_NULLIFY_CLASS = Fixture\Document\ManyNullify\Article::class; + private const TYPE_MANY_NULLIFY_CLASS = Fixture\Document\ManyNullify\Type::class; + private const ARTICLE_MANY_NULLIFY_CLASS = Fixture\Document\ManyNullify\Article::class; - public const TYPE_ONE_PULL_CLASS = Fixture\Document\OnePull\Type::class; - public const ARTICLE_ONE_PULL_CLASS = Fixture\Document\OnePull\Article::class; + private const TYPE_ONE_PULL_CLASS = Fixture\Document\OnePull\Type::class; + private const ARTICLE_ONE_PULL_CLASS = Fixture\Document\OnePull\Article::class; - public const TYPE_MANY_PULL_CLASS = Fixture\Document\ManyPull\Type::class; - public const ARTICLE_MANY_PULL_CLASS = Fixture\Document\ManyPull\Article::class; + private const TYPE_MANY_PULL_CLASS = Fixture\Document\ManyPull\Type::class; + private const ARTICLE_MANY_PULL_CLASS = Fixture\Document\ManyPull\Article::class; - public const TYPE_ONE_RESTRICT_CLASS = Fixture\Document\OneRestrict\Type::class; - public const ARTICLE_ONE_RESTRICT_CLASS = Fixture\Document\OneRestrict\Article::class; + private const TYPE_ONE_RESTRICT_CLASS = Fixture\Document\OneRestrict\Type::class; + private const ARTICLE_ONE_RESTRICT_CLASS = Fixture\Document\OneRestrict\Article::class; - public const TYPE_MANY_RESTRICT_CLASS = Type::class; - public const ARTICLE_MANY_RESTRICT_CLASS = Article::class; + private const TYPE_MANY_RESTRICT_CLASS = Type::class; + private const ARTICLE_MANY_RESTRICT_CLASS = Article::class; protected function setUp(): void { diff --git a/tests/Gedmo/Sluggable/CustomTransliteratorTest.php b/tests/Gedmo/Sluggable/CustomTransliteratorTest.php index abaf552003..8e323fceb6 100644 --- a/tests/Gedmo/Sluggable/CustomTransliteratorTest.php +++ b/tests/Gedmo/Sluggable/CustomTransliteratorTest.php @@ -23,7 +23,7 @@ */ final class CustomTransliteratorTest extends BaseTestCaseORM { - public const ARTICLE = Article::class; + private const ARTICLE = Article::class; public function testStandardTransliteratorFailsOnChineseCharacters(): void { diff --git a/tests/Gedmo/Sluggable/Handlers/BothSlugHandlerTest.php b/tests/Gedmo/Sluggable/Handlers/BothSlugHandlerTest.php index 1606ea31f1..e293681acd 100644 --- a/tests/Gedmo/Sluggable/Handlers/BothSlugHandlerTest.php +++ b/tests/Gedmo/Sluggable/Handlers/BothSlugHandlerTest.php @@ -25,8 +25,8 @@ */ final class BothSlugHandlerTest extends BaseTestCaseORM { - public const OCCUPATION = Occupation::class; - public const PERSON = Person::class; + private const OCCUPATION = Occupation::class; + private const PERSON = Person::class; protected function setUp(): void { diff --git a/tests/Gedmo/Sluggable/Handlers/RelativeSlugHandlerDocumentTest.php b/tests/Gedmo/Sluggable/Handlers/RelativeSlugHandlerDocumentTest.php index 351529d57a..227fc9ffbd 100644 --- a/tests/Gedmo/Sluggable/Handlers/RelativeSlugHandlerDocumentTest.php +++ b/tests/Gedmo/Sluggable/Handlers/RelativeSlugHandlerDocumentTest.php @@ -24,8 +24,8 @@ */ final class RelativeSlugHandlerDocumentTest extends BaseTestCaseMongoODM { - public const ARTICLE = Article::class; - public const SLUG = RelativeSlug::class; + private const ARTICLE = Article::class; + private const SLUG = RelativeSlug::class; protected function setUp(): void { diff --git a/tests/Gedmo/Sluggable/Handlers/RelativeSlugHandlerTest.php b/tests/Gedmo/Sluggable/Handlers/RelativeSlugHandlerTest.php index 6bcd9871cd..039da3e339 100644 --- a/tests/Gedmo/Sluggable/Handlers/RelativeSlugHandlerTest.php +++ b/tests/Gedmo/Sluggable/Handlers/RelativeSlugHandlerTest.php @@ -24,8 +24,8 @@ */ final class RelativeSlugHandlerTest extends BaseTestCaseORM { - public const SLUG = ArticleRelativeSlug::class; - public const ARTICLE = Article::class; + private const SLUG = ArticleRelativeSlug::class; + private const ARTICLE = Article::class; protected function setUp(): void { diff --git a/tests/Gedmo/Sluggable/Handlers/TreeSlugHandlerDocumentTest.php b/tests/Gedmo/Sluggable/Handlers/TreeSlugHandlerDocumentTest.php index 15593217fc..7fa6394111 100644 --- a/tests/Gedmo/Sluggable/Handlers/TreeSlugHandlerDocumentTest.php +++ b/tests/Gedmo/Sluggable/Handlers/TreeSlugHandlerDocumentTest.php @@ -23,7 +23,7 @@ */ final class TreeSlugHandlerDocumentTest extends BaseTestCaseMongoODM { - public const SLUG = TreeSlug::class; + private const SLUG = TreeSlug::class; protected function setUp(): void { diff --git a/tests/Gedmo/Sluggable/Handlers/TreeSlugHandlerPrefixSuffixTest.php b/tests/Gedmo/Sluggable/Handlers/TreeSlugHandlerPrefixSuffixTest.php index 3e55130292..4166813fed 100644 --- a/tests/Gedmo/Sluggable/Handlers/TreeSlugHandlerPrefixSuffixTest.php +++ b/tests/Gedmo/Sluggable/Handlers/TreeSlugHandlerPrefixSuffixTest.php @@ -19,7 +19,7 @@ final class TreeSlugHandlerPrefixSuffixTest extends BaseTestCaseORM { - public const TARGET = TreeSlugPrefixSuffix::class; + private const TARGET = TreeSlugPrefixSuffix::class; protected function setUp(): void { diff --git a/tests/Gedmo/Sluggable/Handlers/TreeSlugHandlerTest.php b/tests/Gedmo/Sluggable/Handlers/TreeSlugHandlerTest.php index 3c500cd0fd..39c2bb5515 100644 --- a/tests/Gedmo/Sluggable/Handlers/TreeSlugHandlerTest.php +++ b/tests/Gedmo/Sluggable/Handlers/TreeSlugHandlerTest.php @@ -24,7 +24,7 @@ */ final class TreeSlugHandlerTest extends BaseTestCaseORM { - public const TARGET = TreeSlug::class; + private const TARGET = TreeSlug::class; protected function setUp(): void { diff --git a/tests/Gedmo/Sluggable/Handlers/TreeSlugHandlerUniqueTest.php b/tests/Gedmo/Sluggable/Handlers/TreeSlugHandlerUniqueTest.php index a3207a74dc..64ad2eb5ea 100644 --- a/tests/Gedmo/Sluggable/Handlers/TreeSlugHandlerUniqueTest.php +++ b/tests/Gedmo/Sluggable/Handlers/TreeSlugHandlerUniqueTest.php @@ -19,7 +19,7 @@ final class TreeSlugHandlerUniqueTest extends BaseTestCaseORM { - public const TARGET = TreeSlug::class; + private const TARGET = TreeSlug::class; protected function setUp(): void { diff --git a/tests/Gedmo/Sluggable/Handlers/UserRelativeSlugHandlerTest.php b/tests/Gedmo/Sluggable/Handlers/UserRelativeSlugHandlerTest.php index 011304db2a..209f08332b 100644 --- a/tests/Gedmo/Sluggable/Handlers/UserRelativeSlugHandlerTest.php +++ b/tests/Gedmo/Sluggable/Handlers/UserRelativeSlugHandlerTest.php @@ -24,8 +24,8 @@ */ final class UserRelativeSlugHandlerTest extends BaseTestCaseORM { - public const USER = User::class; - public const COMPANY = Company::class; + private const USER = User::class; + private const COMPANY = Company::class; protected function setUp(): void { diff --git a/tests/Gedmo/Sluggable/Issue/Issue104Test.php b/tests/Gedmo/Sluggable/Issue/Issue104Test.php index 9f137abef7..31c23989b1 100644 --- a/tests/Gedmo/Sluggable/Issue/Issue104Test.php +++ b/tests/Gedmo/Sluggable/Issue/Issue104Test.php @@ -24,7 +24,7 @@ */ final class Issue104Test extends BaseTestCaseORM { - public const CAR = Car::class; + private const CAR = Car::class; public function testShouldThrowAnExceptionWhenMappedSuperclassProtectedProperty(): void { diff --git a/tests/Gedmo/Sluggable/Issue/Issue1058Test.php b/tests/Gedmo/Sluggable/Issue/Issue1058Test.php index d621845deb..3f5889882d 100644 --- a/tests/Gedmo/Sluggable/Issue/Issue1058Test.php +++ b/tests/Gedmo/Sluggable/Issue/Issue1058Test.php @@ -24,8 +24,8 @@ */ final class Issue1058Test extends BaseTestCaseORM { - public const ARTICLE = Page::class; - public const USER = User::class; + private const ARTICLE = Page::class; + private const USER = User::class; protected function setUp(): void { diff --git a/tests/Gedmo/Sluggable/Issue/Issue116Test.php b/tests/Gedmo/Sluggable/Issue/Issue116Test.php index b415da58ab..7125ba1e15 100644 --- a/tests/Gedmo/Sluggable/Issue/Issue116Test.php +++ b/tests/Gedmo/Sluggable/Issue/Issue116Test.php @@ -26,7 +26,7 @@ */ final class Issue116Test extends BaseTestCaseORM { - public const TARGET = Country::class; + private const TARGET = Country::class; protected function setUp(): void { diff --git a/tests/Gedmo/Sluggable/Issue/Issue1177Test.php b/tests/Gedmo/Sluggable/Issue/Issue1177Test.php index 2bd861937d..02273ce77f 100644 --- a/tests/Gedmo/Sluggable/Issue/Issue1177Test.php +++ b/tests/Gedmo/Sluggable/Issue/Issue1177Test.php @@ -23,7 +23,7 @@ */ final class Issue1177Test extends BaseTestCaseORM { - public const ARTICLE = Article::class; + private const ARTICLE = Article::class; protected function setUp(): void { diff --git a/tests/Gedmo/Sluggable/Issue/Issue1240Test.php b/tests/Gedmo/Sluggable/Issue/Issue1240Test.php index 289f33d116..ddf294cd09 100644 --- a/tests/Gedmo/Sluggable/Issue/Issue1240Test.php +++ b/tests/Gedmo/Sluggable/Issue/Issue1240Test.php @@ -23,7 +23,7 @@ */ final class Issue1240Test extends BaseTestCaseORM { - public const ARTICLE = Article::class; + private const ARTICLE = Article::class; protected function setUp(): void { diff --git a/tests/Gedmo/Sluggable/Issue/Issue131Test.php b/tests/Gedmo/Sluggable/Issue/Issue131Test.php index 4935f70e8a..0973b00629 100644 --- a/tests/Gedmo/Sluggable/Issue/Issue131Test.php +++ b/tests/Gedmo/Sluggable/Issue/Issue131Test.php @@ -23,7 +23,7 @@ */ final class Issue131Test extends BaseTestCaseORM { - public const TARGET = Article::class; + private const TARGET = Article::class; protected function setUp(): void { diff --git a/tests/Gedmo/Sluggable/Issue/Issue449Test.php b/tests/Gedmo/Sluggable/Issue/Issue449Test.php index 74ab2f8880..9a694dc5dc 100644 --- a/tests/Gedmo/Sluggable/Issue/Issue449Test.php +++ b/tests/Gedmo/Sluggable/Issue/Issue449Test.php @@ -27,8 +27,8 @@ */ final class Issue449Test extends BaseTestCaseORM { - public const TARGET = Article::class; - public const SOFT_DELETEABLE_FILTER_NAME = 'soft-deleteable'; + private const TARGET = Article::class; + private const SOFT_DELETEABLE_FILTER_NAME = 'soft-deleteable'; /** * @var SoftDeleteableListener diff --git a/tests/Gedmo/Sluggable/Issue/Issue633Test.php b/tests/Gedmo/Sluggable/Issue/Issue633Test.php index 70bd374168..b0431995c2 100644 --- a/tests/Gedmo/Sluggable/Issue/Issue633Test.php +++ b/tests/Gedmo/Sluggable/Issue/Issue633Test.php @@ -23,7 +23,7 @@ */ final class Issue633Test extends BaseTestCaseORM { - public const TARGET = Article::class; + private const TARGET = Article::class; protected function setUp(): void { diff --git a/tests/Gedmo/Sluggable/Issue/Issue827Test.php b/tests/Gedmo/Sluggable/Issue/Issue827Test.php index f35913339d..a92d1e4632 100644 --- a/tests/Gedmo/Sluggable/Issue/Issue827Test.php +++ b/tests/Gedmo/Sluggable/Issue/Issue827Test.php @@ -28,10 +28,10 @@ */ final class Issue827Test extends BaseTestCaseORM { - public const ARTICLE = Article::class; - public const CATEGORY = Category::class; - public const COMMENT = Comment::class; - public const POST = Post::class; + private const ARTICLE = Article::class; + private const CATEGORY = Category::class; + private const COMMENT = Comment::class; + private const POST = Post::class; protected function setUp(): void { diff --git a/tests/Gedmo/Sluggable/Issue/Issue939Test.php b/tests/Gedmo/Sluggable/Issue/Issue939Test.php index 0c62dab80f..35596dfbf1 100644 --- a/tests/Gedmo/Sluggable/Issue/Issue939Test.php +++ b/tests/Gedmo/Sluggable/Issue/Issue939Test.php @@ -24,8 +24,8 @@ */ final class Issue939Test extends BaseTestCaseORM { - public const ARTICLE = Article::class; - public const CATEGORY = Category::class; + private const ARTICLE = Article::class; + private const CATEGORY = Category::class; protected function setUp(): void { diff --git a/tests/Gedmo/Sluggable/SluggableConfigurationTest.php b/tests/Gedmo/Sluggable/SluggableConfigurationTest.php index cbf364a595..6f67169f0b 100644 --- a/tests/Gedmo/Sluggable/SluggableConfigurationTest.php +++ b/tests/Gedmo/Sluggable/SluggableConfigurationTest.php @@ -24,7 +24,7 @@ */ final class SluggableConfigurationTest extends BaseTestCaseORM { - public const ARTICLE = ConfigurationArticle::class; + private const ARTICLE = ConfigurationArticle::class; /** * @var int|null diff --git a/tests/Gedmo/Sluggable/SluggableDateTimeTypesTest.php b/tests/Gedmo/Sluggable/SluggableDateTimeTypesTest.php index cec8f2c58a..a3e7099e37 100644 --- a/tests/Gedmo/Sluggable/SluggableDateTimeTypesTest.php +++ b/tests/Gedmo/Sluggable/SluggableDateTimeTypesTest.php @@ -29,12 +29,12 @@ */ final class SluggableDateTimeTypesTest extends BaseTestCaseORM { - public const ARTICLE_DATE = ArticleDate::class; - public const ARTICLE_DATE_IMMUTABLE = ArticleDateImmutable::class; - public const ARTICLE_DATETIME = ArticleDateTime::class; - public const ARTICLE_DATETIME_IMMUTABLE = ArticleDateTimeImmutable::class; - public const ARTICLE_DATETIME_TZ = ArticleDateTimeTz::class; - public const ARTICLE_DATETIME_TZ_IMMUTABLE = ArticleDateTimeTzImmutable::class; + private const ARTICLE_DATE = ArticleDate::class; + private const ARTICLE_DATE_IMMUTABLE = ArticleDateImmutable::class; + private const ARTICLE_DATETIME = ArticleDateTime::class; + private const ARTICLE_DATETIME_IMMUTABLE = ArticleDateTimeImmutable::class; + private const ARTICLE_DATETIME_TZ = ArticleDateTimeTz::class; + private const ARTICLE_DATETIME_TZ_IMMUTABLE = ArticleDateTimeTzImmutable::class; protected function setUp(): void { diff --git a/tests/Gedmo/Sluggable/SluggableDocumentTest.php b/tests/Gedmo/Sluggable/SluggableDocumentTest.php index 2cf0e9c9d0..99b35fe74f 100644 --- a/tests/Gedmo/Sluggable/SluggableDocumentTest.php +++ b/tests/Gedmo/Sluggable/SluggableDocumentTest.php @@ -23,7 +23,7 @@ */ final class SluggableDocumentTest extends BaseTestCaseMongoODM { - public const ARTICLE = Article::class; + private const ARTICLE = Article::class; protected function setUp(): void { diff --git a/tests/Gedmo/Sluggable/SluggableFltersTest.php b/tests/Gedmo/Sluggable/SluggableFltersTest.php index 2cdc511824..0b871ef768 100644 --- a/tests/Gedmo/Sluggable/SluggableFltersTest.php +++ b/tests/Gedmo/Sluggable/SluggableFltersTest.php @@ -25,10 +25,10 @@ */ final class SluggableFltersTest extends BaseTestCaseORM { - public const TARGET = Article::class; + private const TARGET = Article::class; - public const SOFT_DELETEABLE_FILTER_NAME = 'soft-deleteable'; - public const FAKE_FILTER_NAME = 'fake-filter'; + private const SOFT_DELETEABLE_FILTER_NAME = 'soft-deleteable'; + private const FAKE_FILTER_NAME = 'fake-filter'; protected function setUp(): void { diff --git a/tests/Gedmo/Sluggable/SluggableIdentifierTest.php b/tests/Gedmo/Sluggable/SluggableIdentifierTest.php index 72c5ac8da7..d917c9678b 100644 --- a/tests/Gedmo/Sluggable/SluggableIdentifierTest.php +++ b/tests/Gedmo/Sluggable/SluggableIdentifierTest.php @@ -23,7 +23,7 @@ */ final class SluggableIdentifierTest extends BaseTestCaseORM { - public const TARGET = Identifier::class; + private const TARGET = Identifier::class; protected function setUp(): void { diff --git a/tests/Gedmo/Sluggable/SluggablePositionTest.php b/tests/Gedmo/Sluggable/SluggablePositionTest.php index d807d2dac2..bb252374f0 100644 --- a/tests/Gedmo/Sluggable/SluggablePositionTest.php +++ b/tests/Gedmo/Sluggable/SluggablePositionTest.php @@ -23,7 +23,7 @@ */ final class SluggablePositionTest extends BaseTestCaseORM { - public const POSITION = Position::class; + private const POSITION = Position::class; protected function setUp(): void { diff --git a/tests/Gedmo/Sluggable/SluggablePrefixSuffixTest.php b/tests/Gedmo/Sluggable/SluggablePrefixSuffixTest.php index b38ae160f6..4b49540f14 100644 --- a/tests/Gedmo/Sluggable/SluggablePrefixSuffixTest.php +++ b/tests/Gedmo/Sluggable/SluggablePrefixSuffixTest.php @@ -22,10 +22,10 @@ final class SluggablePrefixSuffixTest extends BaseTestCaseORM { - public const PREFIX = Prefix::class; - public const SUFFIX = Suffix::class; - public const SUFFIX_TREE = SuffixWithTreeHandler::class; - public const PREFIX_TREE = PrefixWithTreeHandler::class; + private const PREFIX = Prefix::class; + private const SUFFIX = Suffix::class; + private const SUFFIX_TREE = SuffixWithTreeHandler::class; + private const PREFIX_TREE = PrefixWithTreeHandler::class; protected function setUp(): void { diff --git a/tests/Gedmo/Sluggable/SluggableTest.php b/tests/Gedmo/Sluggable/SluggableTest.php index 47e8c1a9fe..4ccaf4debb 100644 --- a/tests/Gedmo/Sluggable/SluggableTest.php +++ b/tests/Gedmo/Sluggable/SluggableTest.php @@ -24,7 +24,7 @@ */ final class SluggableTest extends BaseTestCaseORM { - public const ARTICLE = Article::class; + private const ARTICLE = Article::class; /** * @var int|null diff --git a/tests/Gedmo/Sluggable/TranslatableManySlugTest.php b/tests/Gedmo/Sluggable/TranslatableManySlugTest.php index 6a69d69da6..75db9f419f 100644 --- a/tests/Gedmo/Sluggable/TranslatableManySlugTest.php +++ b/tests/Gedmo/Sluggable/TranslatableManySlugTest.php @@ -27,8 +27,8 @@ */ final class TranslatableManySlugTest extends BaseTestCaseORM { - public const ARTICLE = TransArticleManySlug::class; - public const TRANSLATION = Translation::class; + private const ARTICLE = TransArticleManySlug::class; + private const TRANSLATION = Translation::class; /** * @var int|null diff --git a/tests/Gedmo/Sluggable/TranslatableSlugTest.php b/tests/Gedmo/Sluggable/TranslatableSlugTest.php index cf46583f86..f221c1a1c5 100644 --- a/tests/Gedmo/Sluggable/TranslatableSlugTest.php +++ b/tests/Gedmo/Sluggable/TranslatableSlugTest.php @@ -29,10 +29,10 @@ */ final class TranslatableSlugTest extends BaseTestCaseORM { - public const ARTICLE = TranslatableArticle::class; - public const COMMENT = Comment::class; - public const PAGE = Page::class; - public const TRANSLATION = Translation::class; + private const ARTICLE = TranslatableArticle::class; + private const COMMENT = Comment::class; + private const PAGE = Page::class; + private const TRANSLATION = Translation::class; /** * @var int|null diff --git a/tests/Gedmo/Sluggable/TransliterationTest.php b/tests/Gedmo/Sluggable/TransliterationTest.php index 759da529ea..d9b74029be 100644 --- a/tests/Gedmo/Sluggable/TransliterationTest.php +++ b/tests/Gedmo/Sluggable/TransliterationTest.php @@ -23,7 +23,7 @@ */ final class TransliterationTest extends BaseTestCaseORM { - public const ARTICLE = Article::class; + private const ARTICLE = Article::class; protected function setUp(): void { diff --git a/tests/Gedmo/SoftDeleteable/CarbonTest.php b/tests/Gedmo/SoftDeleteable/CarbonTest.php index 28bddafe85..d43d5045ed 100644 --- a/tests/Gedmo/SoftDeleteable/CarbonTest.php +++ b/tests/Gedmo/SoftDeleteable/CarbonTest.php @@ -22,9 +22,9 @@ final class CarbonTest extends BaseTestCaseORM { - public const ARTICLE_CLASS = Article::class; - public const COMMENT_CLASS = Comment::class; - public const SOFT_DELETEABLE_FILTER_NAME = 'soft-deleteable'; + private const ARTICLE_CLASS = Article::class; + private const COMMENT_CLASS = Comment::class; + private const SOFT_DELETEABLE_FILTER_NAME = 'soft-deleteable'; /** * @var SoftDeleteableListener diff --git a/tests/Gedmo/SoftDeleteable/SoftDeleteableDocumentTest.php b/tests/Gedmo/SoftDeleteable/SoftDeleteableDocumentTest.php index 28449f2ae3..1a57176a22 100644 --- a/tests/Gedmo/SoftDeleteable/SoftDeleteableDocumentTest.php +++ b/tests/Gedmo/SoftDeleteable/SoftDeleteableDocumentTest.php @@ -28,17 +28,9 @@ */ final class SoftDeleteableDocumentTest extends BaseTestCaseMongoODM { - public const ARTICLE_CLASS = 'Gedmo\Tests\SoftDeleteable\Fixture\Document\Article'; - public const COMMENT_CLASS = 'Gedmo\Tests\SoftDeleteable\Fixture\Document\Comment'; - public const PAGE_CLASS = 'Gedmo\Tests\SoftDeleteable\Fixture\Document\Page'; - public const MEGA_PAGE_CLASS = 'Gedmo\Tests\SoftDeleteable\Fixture\Document\MegaPage'; - public const MODULE_CLASS = 'Gedmo\Tests\SoftDeleteable\Fixture\Document\Module'; - public const OTHER_ARTICLE_CLASS = 'Gedmo\Tests\SoftDeleteable\Fixture\Document\OtherArticle'; - public const OTHER_COMMENT_CLASS = 'Gedmo\Tests\SoftDeleteable\Fixture\Document\OtherComment'; - public const USER_CLASS = User::class; - public const USER__TIME_AWARE_CLASS = UserTimeAware::class; - public const MAPPED_SUPERCLASS_CHILD_CLASS = 'Gedmo\Tests\SoftDeleteable\Fixture\Document\Child'; - public const SOFT_DELETEABLE_FILTER_NAME = 'soft-deleteable'; + private const USER_CLASS = User::class; + private const USER__TIME_AWARE_CLASS = UserTimeAware::class; + private const SOFT_DELETEABLE_FILTER_NAME = 'soft-deleteable'; /** * @var SoftDeleteableListener diff --git a/tests/Gedmo/SoftDeleteable/SoftDeleteableEntityTest.php b/tests/Gedmo/SoftDeleteable/SoftDeleteableEntityTest.php index a45ebea233..f3c8408f03 100644 --- a/tests/Gedmo/SoftDeleteable/SoftDeleteableEntityTest.php +++ b/tests/Gedmo/SoftDeleteable/SoftDeleteableEntityTest.php @@ -39,17 +39,17 @@ */ final class SoftDeleteableEntityTest extends BaseTestCaseORM { - public const ARTICLE_CLASS = Article::class; - public const COMMENT_CLASS = Comment::class; - public const PAGE_CLASS = Page::class; - public const MEGA_PAGE_CLASS = MegaPage::class; - public const MODULE_CLASS = Module::class; - public const OTHER_ARTICLE_CLASS = OtherArticle::class; - public const OTHER_COMMENT_CLASS = OtherComment::class; - public const USER_CLASS = User::class; - public const MAPPED_SUPERCLASS_CHILD_CLASS = Child::class; - public const SOFT_DELETEABLE_FILTER_NAME = 'soft-deleteable'; - public const USER_NO_HARD_DELETE_CLASS = UserNoHardDelete::class; + private const ARTICLE_CLASS = Article::class; + private const COMMENT_CLASS = Comment::class; + private const PAGE_CLASS = Page::class; + private const MEGA_PAGE_CLASS = MegaPage::class; + private const MODULE_CLASS = Module::class; + private const OTHER_ARTICLE_CLASS = OtherArticle::class; + private const OTHER_COMMENT_CLASS = OtherComment::class; + private const USER_CLASS = User::class; + private const MAPPED_SUPERCLASS_CHILD_CLASS = Child::class; + private const SOFT_DELETEABLE_FILTER_NAME = 'soft-deleteable'; + private const USER_NO_HARD_DELETE_CLASS = UserNoHardDelete::class; /** * @var SoftDeleteableListener diff --git a/tests/Gedmo/Sortable/SortableDocumentGroupTest.php b/tests/Gedmo/Sortable/SortableDocumentGroupTest.php index e8e082606f..5949d667e2 100644 --- a/tests/Gedmo/Sortable/SortableDocumentGroupTest.php +++ b/tests/Gedmo/Sortable/SortableDocumentGroupTest.php @@ -25,11 +25,11 @@ */ final class SortableDocumentGroupTest extends BaseTestCaseMongoODM { - public const POST = Post::class; - public const CATEGORY = Category::class; - public const KID = Kid::class; - public const KID_DATE1 = '1999-12-31'; - public const KID_DATE2 = '2000-01-01'; + private const POST = Post::class; + private const CATEGORY = Category::class; + private const KID = Kid::class; + private const KID_DATE1 = '1999-12-31'; + private const KID_DATE2 = '2000-01-01'; protected function setUp(): void { diff --git a/tests/Gedmo/Sortable/SortableDocumentTest.php b/tests/Gedmo/Sortable/SortableDocumentTest.php index 534f2600d1..9116a74971 100644 --- a/tests/Gedmo/Sortable/SortableDocumentTest.php +++ b/tests/Gedmo/Sortable/SortableDocumentTest.php @@ -23,7 +23,7 @@ */ final class SortableDocumentTest extends BaseTestCaseMongoODM { - public const ARTICLE = Article::class; + private const ARTICLE = Article::class; protected function setUp(): void { diff --git a/tests/Gedmo/Sortable/SortableGroupTest.php b/tests/Gedmo/Sortable/SortableGroupTest.php index 96daf99d65..135f791862 100644 --- a/tests/Gedmo/Sortable/SortableGroupTest.php +++ b/tests/Gedmo/Sortable/SortableGroupTest.php @@ -30,20 +30,20 @@ */ final class SortableGroupTest extends BaseTestCaseORM { - public const CAR = Car::class; - public const BUS = Bus::class; - public const VEHICLE = Vehicle::class; - public const ENGINE = Engine::class; - public const RESERVATION = Reservation::class; - public const ITEM = Item::class; - public const CATEGORY = Category::class; - public const ITEM_WITH_DATE_COLUMN = ItemWithDateColumn::class; - - public const SEATS = 3; - - public const TRAVEL_DATE_FORMAT = 'Y-m-d H:i'; - public const TODAY = '2013-10-24 12:50'; - public const TOMORROW = '2013-10-25 12:50'; + private const CAR = Car::class; + private const BUS = Bus::class; + private const VEHICLE = Vehicle::class; + private const ENGINE = Engine::class; + private const RESERVATION = Reservation::class; + private const ITEM = Item::class; + private const CATEGORY = Category::class; + private const ITEM_WITH_DATE_COLUMN = ItemWithDateColumn::class; + + private const SEATS = 3; + + private const TRAVEL_DATE_FORMAT = 'Y-m-d H:i'; + private const TODAY = '2013-10-24 12:50'; + private const TOMORROW = '2013-10-25 12:50'; protected function setUp(): void { diff --git a/tests/Gedmo/Sortable/SortableTest.php b/tests/Gedmo/Sortable/SortableTest.php index 19e940a85d..4475446ead 100644 --- a/tests/Gedmo/Sortable/SortableTest.php +++ b/tests/Gedmo/Sortable/SortableTest.php @@ -33,16 +33,16 @@ */ final class SortableTest extends BaseTestCaseORM { - public const NODE = Node::class; - public const NOTIFY_NODE = NotifyNode::class; - public const ITEM = Item::class; - public const CATEGORY = Category::class; - public const SIMPLE_LIST_ITEM = SimpleListItem::class; - public const AUTHOR = Author::class; - public const PAPER = Paper::class; - public const EVENT = Event::class; - public const CUSTOMER = Customer::class; - public const CUSTOMER_TYPE = CustomerType::class; + private const NODE = Node::class; + private const NOTIFY_NODE = NotifyNode::class; + private const ITEM = Item::class; + private const CATEGORY = Category::class; + private const SIMPLE_LIST_ITEM = SimpleListItem::class; + private const AUTHOR = Author::class; + private const PAPER = Paper::class; + private const EVENT = Event::class; + private const CUSTOMER = Customer::class; + private const CUSTOMER_TYPE = CustomerType::class; /** * @var int|null diff --git a/tests/Gedmo/Timestampable/AttributeChangeTest.php b/tests/Gedmo/Timestampable/AttributeChangeTest.php index 242fb116cc..c2c260d61a 100644 --- a/tests/Gedmo/Timestampable/AttributeChangeTest.php +++ b/tests/Gedmo/Timestampable/AttributeChangeTest.php @@ -28,7 +28,7 @@ */ final class AttributeChangeTest extends BaseTestCaseORM { - public const FIXTURE = TitledArticle::class; + private const FIXTURE = TitledArticle::class; /** * @var TimestampableListenerStub diff --git a/tests/Gedmo/Timestampable/CarbonTest.php b/tests/Gedmo/Timestampable/CarbonTest.php index fd5b5dd0a8..3d4d54fd64 100644 --- a/tests/Gedmo/Timestampable/CarbonTest.php +++ b/tests/Gedmo/Timestampable/CarbonTest.php @@ -27,9 +27,9 @@ final class CarbonTest extends BaseTestCaseORM { - public const ARTICLE = ArticleCarbon::class; - public const COMMENT = CommentCarbon::class; - public const TYPE = Type::class; + private const ARTICLE = ArticleCarbon::class; + private const COMMENT = CommentCarbon::class; + private const TYPE = Type::class; protected function setUp(): void { diff --git a/tests/Gedmo/Timestampable/ChangeTest.php b/tests/Gedmo/Timestampable/ChangeTest.php index 954579cbca..f11c8dfbda 100644 --- a/tests/Gedmo/Timestampable/ChangeTest.php +++ b/tests/Gedmo/Timestampable/ChangeTest.php @@ -26,7 +26,7 @@ */ final class ChangeTest extends BaseTestCaseORM { - public const FIXTURE = TitledArticle::class; + private const FIXTURE = TitledArticle::class; /** * @var TimestampableListenerStub diff --git a/tests/Gedmo/Timestampable/NoInterfaceTest.php b/tests/Gedmo/Timestampable/NoInterfaceTest.php index 6a1c4da716..584c0921b0 100644 --- a/tests/Gedmo/Timestampable/NoInterfaceTest.php +++ b/tests/Gedmo/Timestampable/NoInterfaceTest.php @@ -23,7 +23,7 @@ */ final class NoInterfaceTest extends BaseTestCaseORM { - public const FIXTURE = WithoutInterface::class; + private const FIXTURE = WithoutInterface::class; protected function setUp(): void { diff --git a/tests/Gedmo/Timestampable/ProtectedPropertySupperclassTest.php b/tests/Gedmo/Timestampable/ProtectedPropertySupperclassTest.php index f18cff6cd2..b028bef371 100644 --- a/tests/Gedmo/Timestampable/ProtectedPropertySupperclassTest.php +++ b/tests/Gedmo/Timestampable/ProtectedPropertySupperclassTest.php @@ -25,8 +25,8 @@ */ final class ProtectedPropertySupperclassTest extends BaseTestCaseORM { - public const SUPERCLASS = SupperClassExtension::class; - public const TRANSLATION = Translation::class; + private const SUPERCLASS = SupperClassExtension::class; + private const TRANSLATION = Translation::class; protected function setUp(): void { diff --git a/tests/Gedmo/Timestampable/TimestampableDocumentTest.php b/tests/Gedmo/Timestampable/TimestampableDocumentTest.php index 92e09c374d..2c00732373 100644 --- a/tests/Gedmo/Timestampable/TimestampableDocumentTest.php +++ b/tests/Gedmo/Timestampable/TimestampableDocumentTest.php @@ -24,8 +24,7 @@ */ final class TimestampableDocumentTest extends BaseTestCaseMongoODM { - public const ARTICLE = Article::class; - public const TYPE = Type::class; + private const ARTICLE = Article::class; protected function setUp(): void { diff --git a/tests/Gedmo/Timestampable/TimestampableEmbeddedDocumentTest.php b/tests/Gedmo/Timestampable/TimestampableEmbeddedDocumentTest.php index 09e729e7da..bf0c064847 100644 --- a/tests/Gedmo/Timestampable/TimestampableEmbeddedDocumentTest.php +++ b/tests/Gedmo/Timestampable/TimestampableEmbeddedDocumentTest.php @@ -24,7 +24,7 @@ */ final class TimestampableEmbeddedDocumentTest extends BaseTestCaseMongoODM { - public const BOOK = Book::class; + private const BOOK = Book::class; protected function setUp(): void { diff --git a/tests/Gedmo/Timestampable/TimestampableTest.php b/tests/Gedmo/Timestampable/TimestampableTest.php index 0af90db2b8..2790e6ac28 100644 --- a/tests/Gedmo/Timestampable/TimestampableTest.php +++ b/tests/Gedmo/Timestampable/TimestampableTest.php @@ -28,9 +28,9 @@ */ final class TimestampableTest extends BaseTestCaseORM { - public const ARTICLE = Article::class; - public const COMMENT = Comment::class; - public const TYPE = Type::class; + private const ARTICLE = Article::class; + private const COMMENT = Comment::class; + private const TYPE = Type::class; protected function setUp(): void { diff --git a/tests/Gedmo/Timestampable/TraitUsageTest.php b/tests/Gedmo/Timestampable/TraitUsageTest.php index def476bcac..1b49a7976c 100644 --- a/tests/Gedmo/Timestampable/TraitUsageTest.php +++ b/tests/Gedmo/Timestampable/TraitUsageTest.php @@ -23,7 +23,7 @@ */ final class TraitUsageTest extends BaseTestCaseORM { - public const TARGET = UsingTrait::class; + private const TARGET = UsingTrait::class; protected function setUp(): void { diff --git a/tests/Gedmo/Translatable/AttributeEntityTranslationTableTest.php b/tests/Gedmo/Translatable/AttributeEntityTranslationTableTest.php index c24bf2cf54..ef4d095fee 100644 --- a/tests/Gedmo/Translatable/AttributeEntityTranslationTableTest.php +++ b/tests/Gedmo/Translatable/AttributeEntityTranslationTableTest.php @@ -28,9 +28,9 @@ */ final class AttributeEntityTranslationTableTest extends BaseTestCaseORM { - public const PERSON = Person::class; - public const TRANSLATION = PersonTranslation::class; - public const FILE = File::class; + private const PERSON = Person::class; + private const TRANSLATION = PersonTranslation::class; + private const FILE = File::class; /** * @var TranslatableListener diff --git a/tests/Gedmo/Translatable/EntityTranslationTableTest.php b/tests/Gedmo/Translatable/EntityTranslationTableTest.php index 4935438421..abc2c97782 100644 --- a/tests/Gedmo/Translatable/EntityTranslationTableTest.php +++ b/tests/Gedmo/Translatable/EntityTranslationTableTest.php @@ -25,8 +25,8 @@ */ final class EntityTranslationTableTest extends BaseTestCaseORM { - public const PERSON = Person::class; - public const TRANSLATION = PersonTranslation::class; + private const PERSON = Person::class; + private const TRANSLATION = PersonTranslation::class; /** * @var TranslatableListener diff --git a/tests/Gedmo/Translatable/Fixture/Type/Custom.php b/tests/Gedmo/Translatable/Fixture/Type/Custom.php index 40812f4f57..c883ce9911 100644 --- a/tests/Gedmo/Translatable/Fixture/Type/Custom.php +++ b/tests/Gedmo/Translatable/Fixture/Type/Custom.php @@ -16,7 +16,7 @@ class Custom extends Type { - public const NAME = 'custom'; + private const NAME = 'custom'; /** * @return string diff --git a/tests/Gedmo/Translatable/InheritanceTest.php b/tests/Gedmo/Translatable/InheritanceTest.php index 10d0e5f3d6..80474f762c 100644 --- a/tests/Gedmo/Translatable/InheritanceTest.php +++ b/tests/Gedmo/Translatable/InheritanceTest.php @@ -29,12 +29,12 @@ */ final class InheritanceTest extends BaseTestCaseORM { - public const ARTICLE = TemplatedArticle::class; - public const TRANSLATION = Translation::class; - public const FILE = File::class; - public const IMAGE = Image::class; + private const ARTICLE = TemplatedArticle::class; + private const TRANSLATION = Translation::class; + private const FILE = File::class; + private const IMAGE = Image::class; - public const TREE_WALKER_TRANSLATION = TranslationWalker::class; + private const TREE_WALKER_TRANSLATION = TranslationWalker::class; /** * @var TranslatableListener diff --git a/tests/Gedmo/Translatable/Issue/Issue109Test.php b/tests/Gedmo/Translatable/Issue/Issue109Test.php index 8f02d85da6..164969e90a 100644 --- a/tests/Gedmo/Translatable/Issue/Issue109Test.php +++ b/tests/Gedmo/Translatable/Issue/Issue109Test.php @@ -28,11 +28,11 @@ */ final class Issue109Test extends BaseTestCaseORM { - public const ARTICLE = Article::class; - public const COMMENT = Comment::class; - public const TRANSLATION = Translation::class; + private const ARTICLE = Article::class; + private const COMMENT = Comment::class; + private const TRANSLATION = Translation::class; - public const TREE_WALKER_TRANSLATION = TranslationWalker::class; + private const TREE_WALKER_TRANSLATION = TranslationWalker::class; /** * @var TranslatableListener diff --git a/tests/Gedmo/Translatable/Issue/Issue1123Test.php b/tests/Gedmo/Translatable/Issue/Issue1123Test.php index 53a0b9f246..567e22c2a9 100644 --- a/tests/Gedmo/Translatable/Issue/Issue1123Test.php +++ b/tests/Gedmo/Translatable/Issue/Issue1123Test.php @@ -22,9 +22,9 @@ final class Issue1123Test extends BaseTestCaseORM { - public const TRANSLATION = Translation::class; - public const BASE_ENTITY = BaseEntity::class; - public const CHILD_ENTITY = ChildEntity::class; + private const TRANSLATION = Translation::class; + private const BASE_ENTITY = BaseEntity::class; + private const CHILD_ENTITY = ChildEntity::class; /** * @var TranslatableListener diff --git a/tests/Gedmo/Translatable/Issue/Issue114Test.php b/tests/Gedmo/Translatable/Issue/Issue114Test.php index ec2234a18b..6fd6f86ca2 100644 --- a/tests/Gedmo/Translatable/Issue/Issue114Test.php +++ b/tests/Gedmo/Translatable/Issue/Issue114Test.php @@ -25,9 +25,9 @@ */ final class Issue114Test extends BaseTestCaseORM { - public const CATEGORY = Category::class; - public const ARTICLE = Article::class; - public const TRANSLATION = Translation::class; + private const CATEGORY = Category::class; + private const ARTICLE = Article::class; + private const TRANSLATION = Translation::class; /** * @var TranslatableListener diff --git a/tests/Gedmo/Translatable/Issue/Issue135Test.php b/tests/Gedmo/Translatable/Issue/Issue135Test.php index 8e7065b10e..f166da15d7 100644 --- a/tests/Gedmo/Translatable/Issue/Issue135Test.php +++ b/tests/Gedmo/Translatable/Issue/Issue135Test.php @@ -27,11 +27,11 @@ */ final class Issue135Test extends BaseTestCaseORM { - public const ARTICLE = Article::class; - public const COMMENT = Comment::class; - public const TRANSLATION = Translation::class; + private const ARTICLE = Article::class; + private const COMMENT = Comment::class; + private const TRANSLATION = Translation::class; - public const TREE_WALKER_TRANSLATION = TranslationWalker::class; + private const TREE_WALKER_TRANSLATION = TranslationWalker::class; /** * @var TranslatableListener diff --git a/tests/Gedmo/Translatable/Issue/Issue138Test.php b/tests/Gedmo/Translatable/Issue/Issue138Test.php index c6d1a8a430..8e4ed4ab0a 100644 --- a/tests/Gedmo/Translatable/Issue/Issue138Test.php +++ b/tests/Gedmo/Translatable/Issue/Issue138Test.php @@ -26,9 +26,9 @@ */ final class Issue138Test extends BaseTestCaseORM { - public const ARTICLE = Article::class; - public const TRANSLATION = Translation::class; - public const TREE_WALKER_TRANSLATION = TranslationWalker::class; + private const ARTICLE = Article::class; + private const TRANSLATION = Translation::class; + private const TREE_WALKER_TRANSLATION = TranslationWalker::class; /** * @var TranslatableListener diff --git a/tests/Gedmo/Translatable/Issue/Issue165Test.php b/tests/Gedmo/Translatable/Issue/Issue165Test.php index 1aa4eb7d10..9ebef3beb6 100644 --- a/tests/Gedmo/Translatable/Issue/Issue165Test.php +++ b/tests/Gedmo/Translatable/Issue/Issue165Test.php @@ -14,7 +14,6 @@ use Doctrine\Common\EventManager; use Gedmo\Tests\Tool\BaseTestCaseMongoODM; use Gedmo\Tests\Translatable\Fixture\Issue165\SimpleArticle; -use Gedmo\Translatable\Document\Translation; use Gedmo\Translatable\TranslatableListener; /** @@ -24,9 +23,6 @@ */ final class Issue165Test extends BaseTestCaseMongoODM { - public const ARTICLE = SimpleArticle::class; - public const TRANSLATION = Translation::class; - /** * @var TranslatableListener */ diff --git a/tests/Gedmo/Translatable/Issue/Issue173Test.php b/tests/Gedmo/Translatable/Issue/Issue173Test.php index deebe24d7f..9887c1301d 100644 --- a/tests/Gedmo/Translatable/Issue/Issue173Test.php +++ b/tests/Gedmo/Translatable/Issue/Issue173Test.php @@ -30,10 +30,10 @@ */ final class Issue173Test extends BaseTestCaseORM { - public const CATEGORY = Category::class; - public const ARTICLE = Article::class; - public const PRODUCT = Product::class; - public const TRANSLATION = Translation::class; + private const CATEGORY = Category::class; + private const ARTICLE = Article::class; + private const PRODUCT = Product::class; + private const TRANSLATION = Translation::class; /** * @var TranslatableListener diff --git a/tests/Gedmo/Translatable/Issue/Issue84Test.php b/tests/Gedmo/Translatable/Issue/Issue84Test.php index f1af6a55f9..6a64408d1b 100644 --- a/tests/Gedmo/Translatable/Issue/Issue84Test.php +++ b/tests/Gedmo/Translatable/Issue/Issue84Test.php @@ -25,8 +25,8 @@ */ final class Issue84Test extends BaseTestCaseORM { - public const ARTICLE = Article::class; - public const TRANSLATION = Translation::class; + private const ARTICLE = Article::class; + private const TRANSLATION = Translation::class; /** * @var TranslatableListener diff --git a/tests/Gedmo/Translatable/Issue/Issue922Test.php b/tests/Gedmo/Translatable/Issue/Issue922Test.php index fed02d0113..a67229924e 100644 --- a/tests/Gedmo/Translatable/Issue/Issue922Test.php +++ b/tests/Gedmo/Translatable/Issue/Issue922Test.php @@ -22,10 +22,10 @@ final class Issue922Test extends BaseTestCaseORM { - public const POST = Post::class; - public const TRANSLATION = Translation::class; + private const POST = Post::class; + private const TRANSLATION = Translation::class; - public const TREE_WALKER_TRANSLATION = TranslationWalker::class; + private const TREE_WALKER_TRANSLATION = TranslationWalker::class; /** * @var TranslatableListener diff --git a/tests/Gedmo/Translatable/MixedValueTranslationTest.php b/tests/Gedmo/Translatable/MixedValueTranslationTest.php index aa416b5366..118aa0d8b5 100644 --- a/tests/Gedmo/Translatable/MixedValueTranslationTest.php +++ b/tests/Gedmo/Translatable/MixedValueTranslationTest.php @@ -26,8 +26,8 @@ */ final class MixedValueTranslationTest extends BaseTestCaseORM { - public const MIXED = MixedValue::class; - public const TRANSLATION = Translation::class; + private const MIXED = MixedValue::class; + private const TRANSLATION = Translation::class; /** * @var TranslatableListener diff --git a/tests/Gedmo/Translatable/PersonalTranslationDocumentTest.php b/tests/Gedmo/Translatable/PersonalTranslationDocumentTest.php index 514b8a708a..c59a0a0136 100644 --- a/tests/Gedmo/Translatable/PersonalTranslationDocumentTest.php +++ b/tests/Gedmo/Translatable/PersonalTranslationDocumentTest.php @@ -24,8 +24,7 @@ */ final class PersonalTranslationDocumentTest extends BaseTestCaseMongoODM { - public const ARTICLE = Article::class; - public const TRANSLATION = ArticleTranslation::class; + private const ARTICLE = Article::class; /** * @var TranslatableListener diff --git a/tests/Gedmo/Translatable/PersonalTranslationTest.php b/tests/Gedmo/Translatable/PersonalTranslationTest.php index a468f5231e..dc9639618e 100644 --- a/tests/Gedmo/Translatable/PersonalTranslationTest.php +++ b/tests/Gedmo/Translatable/PersonalTranslationTest.php @@ -28,9 +28,9 @@ */ final class PersonalTranslationTest extends BaseTestCaseORM { - public const ARTICLE = Article::class; - public const TRANSLATION = PersonalArticleTranslation::class; - public const TREE_WALKER_TRANSLATION = TranslationWalker::class; + private const ARTICLE = Article::class; + private const TRANSLATION = PersonalArticleTranslation::class; + private const TREE_WALKER_TRANSLATION = TranslationWalker::class; /** * @var TranslatableListener diff --git a/tests/Gedmo/Translatable/TranslatableDocumentCollectionTest.php b/tests/Gedmo/Translatable/TranslatableDocumentCollectionTest.php index 6671cdfb14..016b7ea54b 100644 --- a/tests/Gedmo/Translatable/TranslatableDocumentCollectionTest.php +++ b/tests/Gedmo/Translatable/TranslatableDocumentCollectionTest.php @@ -25,8 +25,8 @@ */ final class TranslatableDocumentCollectionTest extends BaseTestCaseMongoODM { - public const ARTICLE = Article::class; - public const TRANSLATION = Translation::class; + private const ARTICLE = Article::class; + private const TRANSLATION = Translation::class; /** * @var TranslatableListener diff --git a/tests/Gedmo/Translatable/TranslatableDocumentTest.php b/tests/Gedmo/Translatable/TranslatableDocumentTest.php index 13e3501c43..b2d38f01ef 100644 --- a/tests/Gedmo/Translatable/TranslatableDocumentTest.php +++ b/tests/Gedmo/Translatable/TranslatableDocumentTest.php @@ -26,8 +26,8 @@ */ final class TranslatableDocumentTest extends BaseTestCaseMongoODM { - public const ARTICLE = Article::class; - public const TRANSLATION = Translation::class; + private const ARTICLE = Article::class; + private const TRANSLATION = Translation::class; /** * @var TranslatableListener diff --git a/tests/Gedmo/Translatable/TranslatableEntityCollectionTest.php b/tests/Gedmo/Translatable/TranslatableEntityCollectionTest.php index 502c402b68..04144b0802 100644 --- a/tests/Gedmo/Translatable/TranslatableEntityCollectionTest.php +++ b/tests/Gedmo/Translatable/TranslatableEntityCollectionTest.php @@ -25,9 +25,9 @@ */ final class TranslatableEntityCollectionTest extends BaseTestCaseORM { - public const ARTICLE = Article::class; - public const COMMENT = Comment::class; - public const TRANSLATION = Translation::class; + private const ARTICLE = Article::class; + private const COMMENT = Comment::class; + private const TRANSLATION = Translation::class; /** * @var TranslatableListener diff --git a/tests/Gedmo/Translatable/TranslatableEntityDefaultTranslationTest.php b/tests/Gedmo/Translatable/TranslatableEntityDefaultTranslationTest.php index 93f1d1440a..ae94f25bf9 100644 --- a/tests/Gedmo/Translatable/TranslatableEntityDefaultTranslationTest.php +++ b/tests/Gedmo/Translatable/TranslatableEntityDefaultTranslationTest.php @@ -14,7 +14,6 @@ use Doctrine\Common\EventManager; use Gedmo\Tests\Tool\BaseTestCaseORM; use Gedmo\Tests\Translatable\Fixture\Article; -use Gedmo\Tests\Translatable\Fixture\Comment; use Gedmo\Translatable\Entity\Repository\TranslationRepository; use Gedmo\Translatable\Entity\Translation; use Gedmo\Translatable\TranslatableListener; @@ -26,9 +25,8 @@ */ final class TranslatableEntityDefaultTranslationTest extends BaseTestCaseORM { - public const ARTICLE = Article::class; - public const COMMENT = Comment::class; - public const TRANSLATION = Translation::class; + private const ARTICLE = Article::class; + private const TRANSLATION = Translation::class; /** * @var TranslatableListener diff --git a/tests/Gedmo/Translatable/TranslatableIdentifierTest.php b/tests/Gedmo/Translatable/TranslatableIdentifierTest.php index d3b2c30b01..940254f89d 100644 --- a/tests/Gedmo/Translatable/TranslatableIdentifierTest.php +++ b/tests/Gedmo/Translatable/TranslatableIdentifierTest.php @@ -24,8 +24,8 @@ */ final class TranslatableIdentifierTest extends BaseTestCaseORM { - public const FIXTURE = StringIdentifier::class; - public const TRANSLATION = Translation::class; + private const FIXTURE = StringIdentifier::class; + private const TRANSLATION = Translation::class; /** * @var string|null diff --git a/tests/Gedmo/Translatable/TranslatableTest.php b/tests/Gedmo/Translatable/TranslatableTest.php index 0e8a799f58..578dd9db4f 100644 --- a/tests/Gedmo/Translatable/TranslatableTest.php +++ b/tests/Gedmo/Translatable/TranslatableTest.php @@ -29,10 +29,10 @@ */ final class TranslatableTest extends BaseTestCaseORM { - public const ARTICLE = Article::class; - public const SPORT = Sport::class; - public const COMMENT = Comment::class; - public const TRANSLATION = Translation::class; + private const ARTICLE = Article::class; + private const SPORT = Sport::class; + private const COMMENT = Comment::class; + private const TRANSLATION = Translation::class; /** * @var int|null diff --git a/tests/Gedmo/Translatable/TranslatableWithEmbeddedTest.php b/tests/Gedmo/Translatable/TranslatableWithEmbeddedTest.php index 29f29ab721..0bd2f95133 100644 --- a/tests/Gedmo/Translatable/TranslatableWithEmbeddedTest.php +++ b/tests/Gedmo/Translatable/TranslatableWithEmbeddedTest.php @@ -22,10 +22,10 @@ final class TranslatableWithEmbeddedTest extends BaseTestCaseORM { - public const FIXTURE = Company::class; - public const TRANSLATION = Translation::class; + private const FIXTURE = Company::class; + private const TRANSLATION = Translation::class; - public const TREE_WALKER_TRANSLATION = TranslationWalker::class; + private const TREE_WALKER_TRANSLATION = TranslationWalker::class; /** * @var TranslatableListener diff --git a/tests/Gedmo/Translatable/TranslationQueryWalkerTest.php b/tests/Gedmo/Translatable/TranslationQueryWalkerTest.php index 86cf6bff2c..9ac3e63683 100644 --- a/tests/Gedmo/Translatable/TranslationQueryWalkerTest.php +++ b/tests/Gedmo/Translatable/TranslationQueryWalkerTest.php @@ -31,11 +31,11 @@ */ final class TranslationQueryWalkerTest extends BaseTestCaseORM { - public const ARTICLE = Article::class; - public const COMMENT = Comment::class; - public const TRANSLATION = Translation::class; + private const ARTICLE = Article::class; + private const COMMENT = Comment::class; + private const TRANSLATION = Translation::class; - public const TREE_WALKER_TRANSLATION = TranslationWalker::class; + private const TREE_WALKER_TRANSLATION = TranslationWalker::class; /** * @var TranslatableListener diff --git a/tests/Gedmo/Translator/TranslatableTest.php b/tests/Gedmo/Translator/TranslatableTest.php index 51b9b59757..4cd000f6b7 100644 --- a/tests/Gedmo/Translator/TranslatableTest.php +++ b/tests/Gedmo/Translator/TranslatableTest.php @@ -24,8 +24,8 @@ */ final class TranslatableTest extends BaseTestCaseORM { - public const PERSON = Person::class; - public const PERSON_CUSTOM_PROXY = PersonCustom::class; + private const PERSON = Person::class; + private const PERSON_CUSTOM_PROXY = PersonCustom::class; protected function setUp(): void { diff --git a/tests/Gedmo/Tree/ClosureTreeRepositoryTest.php b/tests/Gedmo/Tree/ClosureTreeRepositoryTest.php index 5f62c9d1fa..2242c7985e 100644 --- a/tests/Gedmo/Tree/ClosureTreeRepositoryTest.php +++ b/tests/Gedmo/Tree/ClosureTreeRepositoryTest.php @@ -32,10 +32,10 @@ */ final class ClosureTreeRepositoryTest extends BaseTestCaseORM { - public const CATEGORY = Category::class; - public const CLOSURE = CategoryClosure::class; - public const CATEGORY_WITHOUT_LEVEL = CategoryWithoutLevel::class; - public const CATEGORY_WITHOUT_LEVEL_CLOSURE = CategoryWithoutLevelClosure::class; + private const CATEGORY = Category::class; + private const CLOSURE = CategoryClosure::class; + private const CATEGORY_WITHOUT_LEVEL = CategoryWithoutLevel::class; + private const CATEGORY_WITHOUT_LEVEL_CLOSURE = CategoryWithoutLevelClosure::class; /** * @var TreeListener diff --git a/tests/Gedmo/Tree/ClosureTreeTest.php b/tests/Gedmo/Tree/ClosureTreeTest.php index 5f35fabd94..aa9b14cdd1 100644 --- a/tests/Gedmo/Tree/ClosureTreeTest.php +++ b/tests/Gedmo/Tree/ClosureTreeTest.php @@ -33,14 +33,14 @@ */ final class ClosureTreeTest extends BaseTestCaseORM { - public const CATEGORY = Category::class; - public const CLOSURE = CategoryClosure::class; - public const PERSON = Person::class; - public const USER = User::class; - public const PERSON_CLOSURE = PersonClosure::class; - public const NEWS = News::class; - public const CATEGORY_WITHOUT_LEVEL = CategoryWithoutLevel::class; - public const CATEGORY_WITHOUT_LEVEL_CLOSURE = CategoryWithoutLevelClosure::class; + private const CATEGORY = Category::class; + private const CLOSURE = CategoryClosure::class; + private const PERSON = Person::class; + private const USER = User::class; + private const PERSON_CLOSURE = PersonClosure::class; + private const NEWS = News::class; + private const CATEGORY_WITHOUT_LEVEL = CategoryWithoutLevel::class; + private const CATEGORY_WITHOUT_LEVEL_CLOSURE = CategoryWithoutLevelClosure::class; /** * @var TreeListener diff --git a/tests/Gedmo/Tree/ConcurrencyTest.php b/tests/Gedmo/Tree/ConcurrencyTest.php index fe26846f33..79ae9fbfbe 100644 --- a/tests/Gedmo/Tree/ConcurrencyTest.php +++ b/tests/Gedmo/Tree/ConcurrencyTest.php @@ -25,9 +25,9 @@ */ final class ConcurrencyTest extends BaseTestCaseORM { - public const CATEGORY = Category::class; - public const ARTICLE = Article::class; - public const COMMENT = Comment::class; + private const CATEGORY = Category::class; + private const ARTICLE = Article::class; + private const COMMENT = Comment::class; protected function setUp(): void { diff --git a/tests/Gedmo/Tree/Fixture/User.php b/tests/Gedmo/Tree/Fixture/User.php index e7e8f4ec00..bbe5a39f13 100644 --- a/tests/Gedmo/Tree/Fixture/User.php +++ b/tests/Gedmo/Tree/Fixture/User.php @@ -23,7 +23,7 @@ #[ORM\Table(name: 'user')] class User extends Role { - public const PASSWORD_SALT = 'dfJko$~346958rg!DFT]AEtzserf9giq)3/TAeg;aDFa43'; + private const PASSWORD_SALT = 'dfJko$~346958rg!DFT]AEtzserf9giq)3/TAeg;aDFa43'; /** * @var string|null diff --git a/tests/Gedmo/Tree/InMemoryUpdatesTest.php b/tests/Gedmo/Tree/InMemoryUpdatesTest.php index c02e08397c..79dfe6b22a 100644 --- a/tests/Gedmo/Tree/InMemoryUpdatesTest.php +++ b/tests/Gedmo/Tree/InMemoryUpdatesTest.php @@ -23,7 +23,7 @@ */ final class InMemoryUpdatesTest extends BaseTestCaseORM { - public const CATEGORY = Category::class; + private const CATEGORY = Category::class; protected function setUp(): void { diff --git a/tests/Gedmo/Tree/InMemoryUpdatesWithInheritanceTest.php b/tests/Gedmo/Tree/InMemoryUpdatesWithInheritanceTest.php index a05b6199b3..bae6d824f0 100644 --- a/tests/Gedmo/Tree/InMemoryUpdatesWithInheritanceTest.php +++ b/tests/Gedmo/Tree/InMemoryUpdatesWithInheritanceTest.php @@ -25,9 +25,9 @@ */ final class InMemoryUpdatesWithInheritanceTest extends BaseTestCaseORM { - public const PERSON = Person::class; - public const MAN = Man::class; - public const WOMAN = Woman::class; + private const PERSON = Person::class; + private const MAN = Man::class; + private const WOMAN = Woman::class; protected function setUp(): void { diff --git a/tests/Gedmo/Tree/MaterializedPathODMMongoDBTreeLockingTest.php b/tests/Gedmo/Tree/MaterializedPathODMMongoDBTreeLockingTest.php index a02344cd90..76e5e2547b 100644 --- a/tests/Gedmo/Tree/MaterializedPathODMMongoDBTreeLockingTest.php +++ b/tests/Gedmo/Tree/MaterializedPathODMMongoDBTreeLockingTest.php @@ -25,7 +25,7 @@ */ final class MaterializedPathODMMongoDBTreeLockingTest extends BaseTestCaseMongoODM { - public const ARTICLE = Article::class; + private const ARTICLE = Article::class; /** * @var array diff --git a/tests/Gedmo/Tree/MaterializedPathORMFeaturesTest.php b/tests/Gedmo/Tree/MaterializedPathORMFeaturesTest.php index 30880eba6f..18fa5f6007 100644 --- a/tests/Gedmo/Tree/MaterializedPathORMFeaturesTest.php +++ b/tests/Gedmo/Tree/MaterializedPathORMFeaturesTest.php @@ -24,7 +24,7 @@ */ final class MaterializedPathORMFeaturesTest extends BaseTestCaseORM { - public const CATEGORY = MPFeaturesCategory::class; + private const CATEGORY = MPFeaturesCategory::class; /** * @var array diff --git a/tests/Gedmo/Tree/MaterializedPathORMRepositoryTest.php b/tests/Gedmo/Tree/MaterializedPathORMRepositoryTest.php index 393cc054f9..33465aaaa2 100644 --- a/tests/Gedmo/Tree/MaterializedPathORMRepositoryTest.php +++ b/tests/Gedmo/Tree/MaterializedPathORMRepositoryTest.php @@ -27,8 +27,8 @@ */ final class MaterializedPathORMRepositoryTest extends BaseTestCaseORM { - public const CATEGORY = MPCategory::class; - public const CATEGORY_WITH_TRIMMED_SEPARATOR = MPCategoryWithTrimmedSeparator::class; + private const CATEGORY = MPCategory::class; + private const CATEGORY_WITH_TRIMMED_SEPARATOR = MPCategoryWithTrimmedSeparator::class; /** @var MaterializedPathRepository */ protected $repo; diff --git a/tests/Gedmo/Tree/MaterializedPathORMRootAssociationTest.php b/tests/Gedmo/Tree/MaterializedPathORMRootAssociationTest.php index b1c02600b2..9fe204a4ab 100644 --- a/tests/Gedmo/Tree/MaterializedPathORMRootAssociationTest.php +++ b/tests/Gedmo/Tree/MaterializedPathORMRootAssociationTest.php @@ -24,7 +24,7 @@ */ final class MaterializedPathORMRootAssociationTest extends BaseTestCaseORM { - public const CATEGORY = MPCategoryWithRootAssociation::class; + private const CATEGORY = MPCategoryWithRootAssociation::class; /** * @var array diff --git a/tests/Gedmo/Tree/MaterializedPathORMTest.php b/tests/Gedmo/Tree/MaterializedPathORMTest.php index 849fe85820..f2071eda24 100644 --- a/tests/Gedmo/Tree/MaterializedPathORMTest.php +++ b/tests/Gedmo/Tree/MaterializedPathORMTest.php @@ -25,7 +25,7 @@ */ final class MaterializedPathORMTest extends BaseTestCaseORM { - public const CATEGORY = MPCategory::class; + private const CATEGORY = MPCategory::class; /** * @var array diff --git a/tests/Gedmo/Tree/MultInheritanceWithJoinedTableTest.php b/tests/Gedmo/Tree/MultInheritanceWithJoinedTableTest.php index a05e1e2c79..feeb4c741c 100644 --- a/tests/Gedmo/Tree/MultInheritanceWithJoinedTableTest.php +++ b/tests/Gedmo/Tree/MultInheritanceWithJoinedTableTest.php @@ -28,10 +28,10 @@ */ final class MultInheritanceWithJoinedTableTest extends BaseTestCaseORM { - public const USER = User::class; - public const GROUP = UserGroup::class; - public const ROLE = Role::class; - public const USERLDAP = UserLDAP::class; + private const USER = User::class; + private const GROUP = UserGroup::class; + private const ROLE = Role::class; + private const USERLDAP = UserLDAP::class; /** * @var TreeListener diff --git a/tests/Gedmo/Tree/MultiInheritanceTest.php b/tests/Gedmo/Tree/MultiInheritanceTest.php index 3546651f15..633e655187 100644 --- a/tests/Gedmo/Tree/MultiInheritanceTest.php +++ b/tests/Gedmo/Tree/MultiInheritanceTest.php @@ -24,10 +24,10 @@ */ final class MultiInheritanceTest extends BaseTestCaseORM { - public const NODE = Node::class; - public const BASE_NODE = BaseNode::class; - public const ANODE = ANode::class; - public const TRANSLATION = Translation::class; + private const NODE = Node::class; + private const BASE_NODE = BaseNode::class; + private const ANODE = ANode::class; + private const TRANSLATION = Translation::class; protected function setUp(): void { diff --git a/tests/Gedmo/Tree/MultiInheritanceWithSingleTableTest.php b/tests/Gedmo/Tree/MultiInheritanceWithSingleTableTest.php index 2191c71b88..643e49a1c0 100644 --- a/tests/Gedmo/Tree/MultiInheritanceWithSingleTableTest.php +++ b/tests/Gedmo/Tree/MultiInheritanceWithSingleTableTest.php @@ -26,10 +26,10 @@ */ final class MultiInheritanceWithSingleTableTest extends BaseTestCaseORM { - public const CAR = Car::class; - public const BUS = Bus::class; - public const VEHICLE = Vehicle::class; - public const ENGINE = Engine::class; + private const CAR = Car::class; + private const BUS = Bus::class; + private const VEHICLE = Vehicle::class; + private const ENGINE = Engine::class; protected function setUp(): void { diff --git a/tests/Gedmo/Tree/NestedTreePositionTest.php b/tests/Gedmo/Tree/NestedTreePositionTest.php index 7f0ee962db..18c73e8664 100644 --- a/tests/Gedmo/Tree/NestedTreePositionTest.php +++ b/tests/Gedmo/Tree/NestedTreePositionTest.php @@ -24,8 +24,8 @@ */ final class NestedTreePositionTest extends BaseTestCaseORM { - public const CATEGORY = Category::class; - public const ROOT_CATEGORY = RootCategory::class; + private const CATEGORY = Category::class; + private const ROOT_CATEGORY = RootCategory::class; protected function setUp(): void { diff --git a/tests/Gedmo/Tree/NestedTreeRootAssociationTest.php b/tests/Gedmo/Tree/NestedTreeRootAssociationTest.php index ba11576285..a9280cc71b 100644 --- a/tests/Gedmo/Tree/NestedTreeRootAssociationTest.php +++ b/tests/Gedmo/Tree/NestedTreeRootAssociationTest.php @@ -23,7 +23,7 @@ */ final class NestedTreeRootAssociationTest extends BaseTestCaseORM { - public const CATEGORY = RootAssociationCategory::class; + private const CATEGORY = RootAssociationCategory::class; protected function setUp(): void { diff --git a/tests/Gedmo/Tree/NestedTreeRootRepositoryTest.php b/tests/Gedmo/Tree/NestedTreeRootRepositoryTest.php index 7a8ba899d6..8eca517867 100644 --- a/tests/Gedmo/Tree/NestedTreeRootRepositoryTest.php +++ b/tests/Gedmo/Tree/NestedTreeRootRepositoryTest.php @@ -25,7 +25,7 @@ */ final class NestedTreeRootRepositoryTest extends BaseTestCaseORM { - public const CATEGORY = RootCategory::class; + private const CATEGORY = RootCategory::class; protected function setUp(): void { diff --git a/tests/Gedmo/Tree/NestedTreeRootTest.php b/tests/Gedmo/Tree/NestedTreeRootTest.php index 539c758422..24b97b1c0b 100644 --- a/tests/Gedmo/Tree/NestedTreeRootTest.php +++ b/tests/Gedmo/Tree/NestedTreeRootTest.php @@ -26,7 +26,7 @@ */ final class NestedTreeRootTest extends BaseTestCaseORM { - public const CATEGORY = RootCategory::class; + private const CATEGORY = RootCategory::class; protected function setUp(): void { diff --git a/tests/Gedmo/Tree/RepositoryTest.php b/tests/Gedmo/Tree/RepositoryTest.php index c8409f9c31..0ac4dd6d7e 100644 --- a/tests/Gedmo/Tree/RepositoryTest.php +++ b/tests/Gedmo/Tree/RepositoryTest.php @@ -24,8 +24,8 @@ */ final class RepositoryTest extends BaseTestCaseORM { - public const CATEGORY = Category::class; - public const CATEGORY_UUID = CategoryUuid::class; + private const CATEGORY = Category::class; + private const CATEGORY_UUID = CategoryUuid::class; protected function setUp(): void { diff --git a/tests/Gedmo/Tree/TranslatableSluggableTreeTest.php b/tests/Gedmo/Tree/TranslatableSluggableTreeTest.php index a662e1fd4c..4902e060d8 100644 --- a/tests/Gedmo/Tree/TranslatableSluggableTreeTest.php +++ b/tests/Gedmo/Tree/TranslatableSluggableTreeTest.php @@ -29,10 +29,10 @@ */ final class TranslatableSluggableTreeTest extends BaseTestCaseORM { - public const CATEGORY = BehavioralCategory::class; - public const ARTICLE = Article::class; - public const COMMENT = Comment::class; - public const TRANSLATION = Translation::class; + private const CATEGORY = BehavioralCategory::class; + private const ARTICLE = Article::class; + private const COMMENT = Comment::class; + private const TRANSLATION = Translation::class; /** * @var TranslatableListener diff --git a/tests/Gedmo/Tree/TreeObjectHydratorTest.php b/tests/Gedmo/Tree/TreeObjectHydratorTest.php index 060ab94e02..a10069f8cc 100644 --- a/tests/Gedmo/Tree/TreeObjectHydratorTest.php +++ b/tests/Gedmo/Tree/TreeObjectHydratorTest.php @@ -28,8 +28,8 @@ */ final class TreeObjectHydratorTest extends BaseTestCaseORM { - public const CATEGORY = Category::class; - public const ROOT_CATEGORY = RootCategory::class; + private const CATEGORY = Category::class; + private const ROOT_CATEGORY = RootCategory::class; protected function setUp(): void { diff --git a/tests/Gedmo/Tree/TreeTest.php b/tests/Gedmo/Tree/TreeTest.php index a9434c3438..5b5c64166f 100644 --- a/tests/Gedmo/Tree/TreeTest.php +++ b/tests/Gedmo/Tree/TreeTest.php @@ -25,8 +25,8 @@ */ final class TreeTest extends BaseTestCaseORM { - public const CATEGORY = Category::class; - public const CATEGORY_UUID = CategoryUuid::class; + private const CATEGORY = Category::class; + private const CATEGORY_UUID = CategoryUuid::class; protected function setUp(): void { diff --git a/tests/Gedmo/Uploadable/UploadableEntitySizeTypeTest.php b/tests/Gedmo/Uploadable/UploadableEntitySizeTypeTest.php index a6a460980f..34687d138e 100644 --- a/tests/Gedmo/Uploadable/UploadableEntitySizeTypeTest.php +++ b/tests/Gedmo/Uploadable/UploadableEntitySizeTypeTest.php @@ -25,7 +25,7 @@ */ final class UploadableEntitySizeTypeTest extends BaseTestCaseORM { - public const IMAGE_WITH_TYPED_PROPERTIES_CLASS = ImageWithTypedProperties::class; + private const IMAGE_WITH_TYPED_PROPERTIES_CLASS = ImageWithTypedProperties::class; /** * @var UploadableListenerStub diff --git a/tests/Gedmo/Uploadable/UploadableEntityTest.php b/tests/Gedmo/Uploadable/UploadableEntityTest.php index 47909e5fef..4ba12ea216 100644 --- a/tests/Gedmo/Uploadable/UploadableEntityTest.php +++ b/tests/Gedmo/Uploadable/UploadableEntityTest.php @@ -54,18 +54,18 @@ */ final class UploadableEntityTest extends BaseTestCaseORM { - public const IMAGE_CLASS = Image::class; - public const ARTICLE_CLASS = Article::class; - public const FILE_CLASS = File::class; - public const FILE_APPEND_NUMBER_CLASS = FileAppendNumber::class; - public const FILE_APPEND_NUMBER__RELATIVE_PATH_CLASS = FileAppendNumberRelative::class; - public const FILE_WITHOUT_PATH_CLASS = FileWithoutPath::class; - public const FILE_WITH_SHA1_NAME_CLASS = FileWithSha1Name::class; - public const FILE_WITH_ALPHANUMERIC_NAME_CLASS = FileWithAlphanumericName::class; - public const FILE_WITH_CUSTOM_FILENAME_GENERATOR_CLASS = FileWithCustomFilenameGenerator::class; - public const FILE_WITH_MAX_SIZE_CLASS = FileWithMaxSize::class; - public const FILE_WITH_ALLOWED_TYPES_CLASS = FileWithAllowedTypes::class; - public const FILE_WITH_DISALLOWED_TYPES_CLASS = FileWithDisallowedTypes::class; + private const IMAGE_CLASS = Image::class; + private const ARTICLE_CLASS = Article::class; + private const FILE_CLASS = File::class; + private const FILE_APPEND_NUMBER_CLASS = FileAppendNumber::class; + private const FILE_APPEND_NUMBER__RELATIVE_PATH_CLASS = FileAppendNumberRelative::class; + private const FILE_WITHOUT_PATH_CLASS = FileWithoutPath::class; + private const FILE_WITH_SHA1_NAME_CLASS = FileWithSha1Name::class; + private const FILE_WITH_ALPHANUMERIC_NAME_CLASS = FileWithAlphanumericName::class; + private const FILE_WITH_CUSTOM_FILENAME_GENERATOR_CLASS = FileWithCustomFilenameGenerator::class; + private const FILE_WITH_MAX_SIZE_CLASS = FileWithMaxSize::class; + private const FILE_WITH_ALLOWED_TYPES_CLASS = FileWithAllowedTypes::class; + private const FILE_WITH_DISALLOWED_TYPES_CLASS = FileWithDisallowedTypes::class; /** * @var UploadableListenerStub diff --git a/tests/Gedmo/Wrapper/EntityWrapperTest.php b/tests/Gedmo/Wrapper/EntityWrapperTest.php index 4b20a2cbc8..1ee6d359db 100644 --- a/tests/Gedmo/Wrapper/EntityWrapperTest.php +++ b/tests/Gedmo/Wrapper/EntityWrapperTest.php @@ -26,9 +26,9 @@ */ final class EntityWrapperTest extends BaseTestCaseORM { - public const ARTICLE = Article::class; - public const COMPOSITE = Composite::class; - public const COMPOSITE_RELATION = CompositeRelation::class; + private const ARTICLE = Article::class; + private const COMPOSITE = Composite::class; + private const COMPOSITE_RELATION = CompositeRelation::class; protected function setUp(): void { diff --git a/tests/Gedmo/Wrapper/MongoDocumentWrapperTest.php b/tests/Gedmo/Wrapper/MongoDocumentWrapperTest.php index 70a9efb44a..b1d13f4a67 100644 --- a/tests/Gedmo/Wrapper/MongoDocumentWrapperTest.php +++ b/tests/Gedmo/Wrapper/MongoDocumentWrapperTest.php @@ -23,7 +23,7 @@ */ final class MongoDocumentWrapperTest extends BaseTestCaseMongoODM { - public const ARTICLE = Article::class; + private const ARTICLE = Article::class; /** * @var string|null