File tree Expand file tree Collapse file tree 5 files changed +20
-2
lines changed Expand file tree Collapse file tree 5 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,9 @@ public function testThatApiKeyHasExpectedRoles(
45
45
StringableArrayObject $ expectedRoles ,
46
46
StringableArrayObject $ criteria
47
47
): void {
48
- $ apiKey = self ::getContainer ()->get (ApiKeyRepository::class)->findOneBy ($ criteria ->getArrayCopy ());
48
+ static ::bootKernel ();
49
+
50
+ $ apiKey = static ::getContainer ()->get (ApiKeyRepository::class)->findOneBy ($ criteria ->getArrayCopy ());
49
51
50
52
self ::assertInstanceOf (ApiKey::class, $ apiKey );
51
53
self ::assertSame ($ expectedRoles ->getArrayCopy (), $ apiKey ->getRoles ());
@@ -57,7 +59,7 @@ public function testThatApiKeyHasExpectedRoles(
57
59
*/
58
60
public function dataProviderTestThatApiKeyHasExpectedRoles (): Generator
59
61
{
60
- $ rolesService = self ::getContainer ()->get (RolesService::class);
62
+ $ rolesService = static ::getContainer ()->get (RolesService::class);
61
63
62
64
foreach ($ rolesService ->getRoles () as $ role ) {
63
65
yield [
Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ class DateDimensionTest extends EntityTestCase
32
32
33
33
/** @noinspection PhpMissingParentCallCommonInspection */
34
34
/**
35
+ * @dataProvider dataProviderTestThatSetterAndGettersWorks
36
+ *
35
37
* @testdox No setter for `$property` property in read only entity - so cannot test this
36
38
*/
37
39
public function testThatSetterOnlyAcceptSpecifiedType (
@@ -44,6 +46,8 @@ public function testThatSetterOnlyAcceptSpecifiedType(
44
46
45
47
/** @noinspection PhpMissingParentCallCommonInspection */
46
48
/**
49
+ * @dataProvider dataProviderTestThatSetterAndGettersWorks
50
+ *
47
51
* @testdox No setter for `$property` property in read only entity - so cannot test this
48
52
*/
49
53
public function testThatSetterReturnsInstanceOfEntity (
Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ class LogLoginFailureTest extends EntityTestCase
32
32
33
33
/** @noinspection PhpMissingParentCallCommonInspection */
34
34
/**
35
+ * @dataProvider dataProviderTestThatSetterAndGettersWorks
36
+ *
35
37
* @testdox No setter for `$property` property in read only entity - so cannot test this
36
38
*/
37
39
public function testThatSetterOnlyAcceptSpecifiedType (
@@ -44,6 +46,8 @@ public function testThatSetterOnlyAcceptSpecifiedType(
44
46
45
47
/** @noinspection PhpMissingParentCallCommonInspection */
46
48
/**
49
+ * @dataProvider dataProviderTestThatSetterAndGettersWorks
50
+ *
47
51
* @testdox No setter for `$property` property in read only entity - so cannot test this
48
52
*/
49
53
public function testThatSetterReturnsInstanceOfEntity (
Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ class LogLoginTest extends EntityTestCase
36
36
37
37
/** @noinspection PhpMissingParentCallCommonInspection */
38
38
/**
39
+ * @dataProvider dataProviderTestThatSetterAndGettersWorks
40
+ *
39
41
* @testdox No setter for `$property` property in read only entity - so cannot test this
40
42
*/
41
43
public function testThatSetterOnlyAcceptSpecifiedType (
@@ -48,6 +50,8 @@ public function testThatSetterOnlyAcceptSpecifiedType(
48
50
49
51
/** @noinspection PhpMissingParentCallCommonInspection */
50
52
/**
53
+ * @dataProvider dataProviderTestThatSetterAndGettersWorks
54
+ *
51
55
* @testdox No setter for `$property` property in read only entity - so cannot test this
52
56
*/
53
57
public function testThatSetterReturnsInstanceOfEntity (
Original file line number Diff line number Diff line change @@ -43,6 +43,8 @@ class LogRequestTest extends EntityTestCase
43
43
44
44
/** @noinspection PhpMissingParentCallCommonInspection */
45
45
/**
46
+ * @dataProvider dataProviderTestThatSetterAndGettersWorks
47
+ *
46
48
* @testdox No setter for `$property` property in read only entity - so cannot test this
47
49
*/
48
50
public function testThatSetterOnlyAcceptSpecifiedType (
@@ -55,6 +57,8 @@ public function testThatSetterOnlyAcceptSpecifiedType(
55
57
56
58
/** @noinspection PhpMissingParentCallCommonInspection */
57
59
/**
60
+ * @dataProvider dataProviderTestThatSetterAndGettersWorks
61
+ *
58
62
* @testdox No setter for `$property` property in read only entity - so cannot test this
59
63
*/
60
64
public function testThatSetterReturnsInstanceOfEntity (
You can’t perform that action at this time.
0 commit comments