Skip to content

Commit c5798aa

Browse files
committed
Add missing token for "codecov/codecov-action" at "upload_coverage" CI job
1 parent eabb450 commit c5798aa

File tree

118 files changed

+878
-1286
lines changed

Some content is hidden

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

118 files changed

+878
-1286
lines changed

tests/Gedmo/Blameable/BlameableDocumentTest.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ final class BlameableDocumentTest extends BaseTestCaseMongoODM
2727
{
2828
private const TEST_USERNAME = 'testuser';
2929

30-
private const ARTICLE = Article::class;
31-
3230
protected function setUp(): void
3331
{
3432
parent::setUp();
@@ -50,7 +48,7 @@ protected function setUp(): void
5048

5149
public function testBlameable(): void
5250
{
53-
$repo = $this->dm->getRepository(self::ARTICLE);
51+
$repo = $this->dm->getRepository(Article::class);
5452
$article = $repo->findOneBy(['title' => 'Blameable Article']);
5553

5654
static::assertSame(self::TEST_USERNAME, $article->getCreated());
@@ -81,7 +79,7 @@ public function testForcedValues(): void
8179
$this->dm->persist($sport);
8280
$this->dm->flush();
8381

84-
$repo = $this->dm->getRepository(self::ARTICLE);
82+
$repo = $this->dm->getRepository(Article::class);
8583
$sport = $repo->findOneBy(['title' => 'sport forced']);
8684
static::assertSame(self::TEST_USERNAME, $sport->getCreated());
8785
static::assertSame(self::TEST_USERNAME, $sport->getUpdated());

tests/Gedmo/Blameable/BlameableTest.php

+7-11
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@
2626
*/
2727
final class BlameableTest extends BaseTestCaseORM
2828
{
29-
private const ARTICLE = Article::class;
30-
private const COMMENT = Comment::class;
31-
private const TYPE = Type::class;
32-
3329
protected function setUp(): void
3430
{
3531
parent::setUp();
@@ -62,12 +58,12 @@ public function testBlameable(): void
6258
$this->em->flush();
6359
$this->em->clear();
6460

65-
$sport = $this->em->getRepository(self::ARTICLE)->findOneBy(['title' => 'Sport']);
61+
$sport = $this->em->getRepository(Article::class)->findOneBy(['title' => 'Sport']);
6662
static::assertSame('testuser', $sport->getCreated());
6763
static::assertSame('testuser', $sport->getUpdated());
6864
static::assertNull($sport->getPublished());
6965

70-
$sportComment = $this->em->getRepository(self::COMMENT)->findOneBy(['message' => 'hello']);
66+
$sportComment = $this->em->getRepository(Comment::class)->findOneBy(['message' => 'hello']);
7167
static::assertSame('testuser', $sportComment->getModified());
7268
static::assertNull($sportComment->getClosed());
7369

@@ -83,7 +79,7 @@ public function testBlameable(): void
8379
$this->em->flush();
8480
$this->em->clear();
8581

86-
$sportComment = $this->em->getRepository(self::COMMENT)->findOneBy(['message' => 'hello']);
82+
$sportComment = $this->em->getRepository(Comment::class)->findOneBy(['message' => 'hello']);
8783
static::assertSame('testuser', $sportComment->getClosed());
8884

8985
static::assertSame('testuser', $sport->getPublished());
@@ -100,7 +96,7 @@ public function testForcedValues(): void
10096
$this->em->flush();
10197
$this->em->clear();
10298

103-
$repo = $this->em->getRepository(self::ARTICLE);
99+
$repo = $this->em->getRepository(Article::class);
104100
$sport = $repo->findOneBy(['title' => 'sport forced']);
105101
static::assertSame('myuser', $sport->getCreated());
106102
static::assertSame('myuser', $sport->getUpdated());
@@ -122,9 +118,9 @@ public function testForcedValues(): void
122118
protected function getUsedEntityFixtures(): array
123119
{
124120
return [
125-
self::ARTICLE,
126-
self::COMMENT,
127-
self::TYPE,
121+
Article::class,
122+
Comment::class,
123+
Type::class,
128124
];
129125
}
130126
}

tests/Gedmo/Blameable/BlameableUuidTest.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121

2222
final class BlameableUuidTest extends BaseTestCaseORM
2323
{
24-
private const COMPANY = Company::class;
25-
2624
private UuidV6 $uuid;
2725

2826
protected function setUp(): void
@@ -54,7 +52,7 @@ public function testBlameableUuid(): void
5452
/**
5553
* @var Company $foundCompany
5654
*/
57-
$foundCompany = $this->em->getRepository(self::COMPANY)->findOneBy(['name' => 'ACME']);
55+
$foundCompany = $this->em->getRepository(Company::class)->findOneBy(['name' => 'ACME']);
5856
$created = $foundCompany->getCreated();
5957
$createdUuid = $created instanceof Uuid ? $created->toRfc4122() : null;
6058

@@ -64,7 +62,7 @@ public function testBlameableUuid(): void
6462
protected function getUsedEntityFixtures(): array
6563
{
6664
return [
67-
self::COMPANY,
65+
Company::class,
6866
];
6967
}
7068
}

tests/Gedmo/Blameable/ChangeTest.php

+3-5
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
*/
2424
final class ChangeTest extends BaseTestCaseORM
2525
{
26-
private const FIXTURE = TitledArticle::class;
27-
2826
private BlameableListener $listener;
2927

3028
protected function setUp(): void
@@ -49,7 +47,7 @@ public function testChange(): void
4947
$this->em->flush();
5048
$this->em->clear();
5149

52-
$test = $this->em->getRepository(self::FIXTURE)->findOneBy(['title' => 'Test']);
50+
$test = $this->em->getRepository(TitledArticle::class)->findOneBy(['title' => 'Test']);
5351
$test->setTitle('New Title');
5452
$this->em->persist($test);
5553
$this->em->flush();
@@ -59,7 +57,7 @@ public function testChange(): void
5957

6058
$this->listener->setUserValue('otheruser');
6159

62-
$test = $this->em->getRepository(self::FIXTURE)->findOneBy(['title' => 'New Title']);
60+
$test = $this->em->getRepository(TitledArticle::class)->findOneBy(['title' => 'New Title']);
6361
$test->setText('New Text');
6462
$this->em->persist($test);
6563
$this->em->flush();
@@ -71,7 +69,7 @@ public function testChange(): void
7169
protected function getUsedEntityFixtures(): array
7270
{
7371
return [
74-
self::FIXTURE,
72+
TitledArticle::class,
7573
];
7674
}
7775
}

tests/Gedmo/Blameable/NoInterfaceTest.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
*/
2424
final class NoInterfaceTest extends BaseTestCaseORM
2525
{
26-
private const FIXTURE = WithoutInterface::class;
27-
2826
protected function setUp(): void
2927
{
3028
parent::setUp();
@@ -46,15 +44,15 @@ public function testBlameableNoInterface(): void
4644
$this->em->flush();
4745
$this->em->clear();
4846

49-
$test = $this->em->getRepository(self::FIXTURE)->findOneBy(['title' => 'Test']);
47+
$test = $this->em->getRepository(WithoutInterface::class)->findOneBy(['title' => 'Test']);
5048
static::assertSame('testuser', $test->getCreated());
5149
static::assertSame('testuser', $test->getUpdated());
5250
}
5351

5452
protected function getUsedEntityFixtures(): array
5553
{
5654
return [
57-
self::FIXTURE,
55+
WithoutInterface::class,
5856
];
5957
}
6058
}

tests/Gedmo/Blameable/NoUserTest.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
*/
2424
final class NoUserTest extends BaseTestCaseMongoODM
2525
{
26-
private const ARTICLE = Article::class;
27-
2826
protected function setUp(): void
2927
{
3028
parent::setUp();
@@ -47,7 +45,7 @@ public function testWhenNoUserIsAvailable(): void
4745
$this->dm->flush();
4846
$this->dm->clear();
4947

50-
$repo = $this->dm->getRepository(self::ARTICLE);
48+
$repo = $this->dm->getRepository(Article::class);
5149
$sport = $repo->findOneBy(['title' => 'sport no user']);
5250
static::assertEmpty($sport->getCreated());
5351
static::assertEmpty($sport->getUpdated());

tests/Gedmo/Blameable/ProtectedPropertySupperclassTest.php

+3-6
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@
2525
*/
2626
final class ProtectedPropertySupperclassTest extends BaseTestCaseORM
2727
{
28-
private const SUPERCLASS = SupperClassExtension::class;
29-
private const TRANSLATION = Translation::class;
30-
3128
protected function setUp(): void
3229
{
3330
parent::setUp();
@@ -53,7 +50,7 @@ public function testProtectedProperty(): void
5350
$this->em->flush();
5451
$this->em->clear();
5552

56-
$repo = $this->em->getRepository(self::TRANSLATION);
53+
$repo = $this->em->getRepository(Translation::class);
5754
$translations = $repo->findTranslations($test);
5855
static::assertCount(0, $translations);
5956

@@ -63,8 +60,8 @@ public function testProtectedProperty(): void
6360
protected function getUsedEntityFixtures(): array
6461
{
6562
return [
66-
self::TRANSLATION,
67-
self::SUPERCLASS,
63+
Translation::class,
64+
SupperClassExtension::class,
6865
];
6966
}
7067
}

tests/Gedmo/Blameable/TraitUsageTest.php

+3-5
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
*/
2424
final class TraitUsageTest extends BaseTestCaseORM
2525
{
26-
private const TARGET = UsingTrait::class;
27-
2826
protected function setUp(): void
2927
{
3028
parent::setUp();
@@ -52,14 +50,14 @@ public function testShouldTimestampUsingTrait(): void
5250
public function testTraitMethodthShouldReturnObject(): void
5351
{
5452
$sport = new UsingTrait();
55-
static::assertInstanceOf(self::TARGET, $sport->setCreatedBy('myuser'));
56-
static::assertInstanceOf(self::TARGET, $sport->setUpdatedBy('myuser'));
53+
static::assertInstanceOf(UsingTrait::class, $sport->setCreatedBy('myuser'));
54+
static::assertInstanceOf(UsingTrait::class, $sport->setUpdatedBy('myuser'));
5755
}
5856

5957
protected function getUsedEntityFixtures(): array
6058
{
6159
return [
62-
self::TARGET,
60+
UsingTrait::class,
6361
];
6462
}
6563
}

tests/Gedmo/IpTraceable/ChangeTest.php

+3-4
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
final class ChangeTest extends BaseTestCaseORM
2525
{
2626
private const TEST_IP = '34.234.1.10';
27-
private const FIXTURE = TitledArticle::class;
2827

2928
/**
3029
* @var IpTraceableListener
@@ -54,7 +53,7 @@ public function testChange(): void
5453
$this->em->flush();
5554
$this->em->clear();
5655

57-
$test = $this->em->getRepository(self::FIXTURE)->findOneBy(['title' => 'Test']);
56+
$test = $this->em->getRepository(TitledArticle::class)->findOneBy(['title' => 'Test']);
5857
$test->setTitle('New Title');
5958
$this->em->persist($test);
6059
$this->em->flush();
@@ -64,7 +63,7 @@ public function testChange(): void
6463

6564
$this->listener->setIpValue('127.0.0.1');
6665

67-
$test = $this->em->getRepository(self::FIXTURE)->findOneBy(['title' => 'New Title']);
66+
$test = $this->em->getRepository(TitledArticle::class)->findOneBy(['title' => 'New Title']);
6867
$test->setText('New Text');
6968
$this->em->persist($test);
7069
$this->em->flush();
@@ -76,7 +75,7 @@ public function testChange(): void
7675
protected function getUsedEntityFixtures(): array
7776
{
7877
return [
79-
self::FIXTURE,
78+
TitledArticle::class,
8079
];
8180
}
8281
}

tests/Gedmo/IpTraceable/IpTraceableDocumentTest.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ final class IpTraceableDocumentTest extends BaseTestCaseMongoODM
2626
{
2727
private const TEST_IP = '34.234.1.10';
2828

29-
private const ARTICLE = Article::class;
30-
3129
protected function setUp(): void
3230
{
3331
parent::setUp();
@@ -44,7 +42,7 @@ protected function setUp(): void
4442

4543
public function testIpTraceable(): void
4644
{
47-
$repo = $this->dm->getRepository(self::ARTICLE);
45+
$repo = $this->dm->getRepository(Article::class);
4846
$article = $repo->findOneBy(['title' => 'IpTraceable Article']);
4947

5048
static::assertSame(self::TEST_IP, $article->getCreated());
@@ -77,7 +75,7 @@ public function testForcedValues(): void
7775
$this->dm->flush();
7876
$this->dm->clear();
7977

80-
$repo = $this->dm->getRepository(self::ARTICLE);
78+
$repo = $this->dm->getRepository(Article::class);
8179
$sport = $repo->findOneBy(['title' => 'sport forced']);
8280
static::assertSame(self::TEST_IP, (string) $sport->getCreated());
8381
static::assertSame(self::TEST_IP, $sport->getUpdated());

tests/Gedmo/IpTraceable/IpTraceableTest.php

+7-11
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ final class IpTraceableTest extends BaseTestCaseORM
3131
{
3232
private const TEST_IP = '34.234.1.10';
3333

34-
private const ARTICLE = Article::class;
35-
private const COMMENT = Comment::class;
36-
private const TYPE = Type::class;
37-
3834
protected function setUp(): void
3935
{
4036
parent::setUp();
@@ -98,12 +94,12 @@ public function testIpTraceable(): void
9894
$this->em->flush();
9995
$this->em->clear();
10096

101-
$sport = $this->em->getRepository(self::ARTICLE)->findOneBy(['title' => 'Sport']);
97+
$sport = $this->em->getRepository(Article::class)->findOneBy(['title' => 'Sport']);
10298
static::assertSame(self::TEST_IP, $sport->getCreated());
10399
static::assertSame(self::TEST_IP, $sport->getUpdated());
104100
static::assertNull($sport->getPublished());
105101

106-
$sportComment = $this->em->getRepository(self::COMMENT)->findOneBy(['message' => 'hello']);
102+
$sportComment = $this->em->getRepository(Comment::class)->findOneBy(['message' => 'hello']);
107103
static::assertSame(self::TEST_IP, $sportComment->getModified());
108104
static::assertNull($sportComment->getClosed());
109105

@@ -119,7 +115,7 @@ public function testIpTraceable(): void
119115
$this->em->flush();
120116
$this->em->clear();
121117

122-
$sportComment = $this->em->getRepository(self::COMMENT)->findOneBy(['message' => 'hello']);
118+
$sportComment = $this->em->getRepository(Comment::class)->findOneBy(['message' => 'hello']);
123119
static::assertSame(self::TEST_IP, $sportComment->getClosed());
124120

125121
static::assertSame(self::TEST_IP, $sport->getPublished());
@@ -136,7 +132,7 @@ public function testForcedValues(): void
136132
$this->em->flush();
137133
$this->em->clear();
138134

139-
$repo = $this->em->getRepository(self::ARTICLE);
135+
$repo = $this->em->getRepository(Article::class);
140136
$sport = $repo->findOneBy(['title' => 'sport forced']);
141137
static::assertSame(self::TEST_IP, $sport->getCreated());
142138
static::assertSame(self::TEST_IP, $sport->getUpdated());
@@ -158,9 +154,9 @@ public function testForcedValues(): void
158154
protected function getUsedEntityFixtures(): array
159155
{
160156
return [
161-
self::ARTICLE,
162-
self::COMMENT,
163-
self::TYPE,
157+
Article::class,
158+
Comment::class,
159+
Type::class,
164160
];
165161
}
166162
}

tests/Gedmo/IpTraceable/NoInterfaceTest.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
final class NoInterfaceTest extends BaseTestCaseORM
2525
{
2626
private const TEST_IP = '34.234.1.10';
27-
private const FIXTURE = WithoutInterface::class;
2827

2928
protected function setUp(): void
3029
{
@@ -47,15 +46,15 @@ public function testIpTraceableNoInterface(): void
4746
$this->em->flush();
4847
$this->em->clear();
4948

50-
$test = $this->em->getRepository(self::FIXTURE)->findOneBy(['title' => 'Test']);
49+
$test = $this->em->getRepository(WithoutInterface::class)->findOneBy(['title' => 'Test']);
5150
static::assertSame(self::TEST_IP, $test->getCreated());
5251
static::assertSame(self::TEST_IP, $test->getUpdated());
5352
}
5453

5554
protected function getUsedEntityFixtures(): array
5655
{
5756
return [
58-
self::FIXTURE,
57+
WithoutInterface::class,
5958
];
6059
}
6160
}

0 commit comments

Comments
 (0)