@@ -32,9 +32,9 @@ protected function setUp(): void
32
32
33
33
public function testInsertTwoRootsInOneFlush (): void
34
34
{
35
- $ ou1 = new OU ('00000000-0000-0000-0000-000000000001 ' , null );
35
+ $ ou1 = new OU ('00000000-0000-0000-0000-000000000001 ' , null );
36
36
$ ou11 = new OU ('00000000-0000-0000-0000-000000000011 ' , $ ou1 );
37
- $ ou2 = new OU ('00000000-0000-0000-0000-000000000002 ' , null );
37
+ $ ou2 = new OU ('00000000-0000-0000-0000-000000000002 ' , null );
38
38
$ ou21 = new OU ('00000000-0000-0000-0000-000000000021 ' , $ ou2 );
39
39
40
40
@@ -53,7 +53,7 @@ public function testInsertTwoRootsInOneFlush(): void
53
53
['00000000-0000-0000-0000-000000000021 ' , '00000000-0000-0000-0000-000000000002 ' , 6 , 1 , 7 ],
54
54
];
55
55
foreach ($ this ->fetchAllOUs () as $ i => $ a ) {
56
- self ::assertSame (
56
+ static ::assertSame (
57
57
$ expected [$ i ],
58
58
[
59
59
$ a ->getId (),
@@ -68,9 +68,9 @@ public function testInsertTwoRootsInOneFlush(): void
68
68
69
69
public function testInsertTwoRootsInOneFlushRootsFirst (): void
70
70
{
71
- $ ou1 = new OU ('00000000-0000-0000-0000-000000000001 ' , null );
71
+ $ ou1 = new OU ('00000000-0000-0000-0000-000000000001 ' , null );
72
72
$ ou11 = new OU ('00000000-0000-0000-0000-000000000011 ' , $ ou1 );
73
- $ ou2 = new OU ('00000000-0000-0000-0000-000000000002 ' , null );
73
+ $ ou2 = new OU ('00000000-0000-0000-0000-000000000002 ' , null );
74
74
$ ou21 = new OU ('00000000-0000-0000-0000-000000000021 ' , $ ou2 );
75
75
76
76
@@ -89,7 +89,7 @@ public function testInsertTwoRootsInOneFlushRootsFirst(): void
89
89
['00000000-0000-0000-0000-000000000021 ' , '00000000-0000-0000-0000-000000000002 ' , 6 , 1 , 7 ],
90
90
];
91
91
foreach ($ this ->fetchAllOUs () as $ i => $ a ) {
92
- self ::assertSame (
92
+ static ::assertSame (
93
93
$ expected [$ i ],
94
94
[
95
95
$ a ->getId (),
@@ -104,9 +104,9 @@ public function testInsertTwoRootsInOneFlushRootsFirst(): void
104
104
105
105
public function testInsertTwoRootsInTwoFlushes (): void
106
106
{
107
- $ ou1 = new OU ('00000000-0000-0000-0000-000000000001 ' , null );
107
+ $ ou1 = new OU ('00000000-0000-0000-0000-000000000001 ' , null );
108
108
$ ou11 = new OU ('00000000-0000-0000-0000-000000000011 ' , $ ou1 );
109
- $ ou2 = new OU ('00000000-0000-0000-0000-000000000002 ' , null );
109
+ $ ou2 = new OU ('00000000-0000-0000-0000-000000000002 ' , null );
110
110
$ ou21 = new OU ('00000000-0000-0000-0000-000000000021 ' , $ ou2 );
111
111
112
112
@@ -126,7 +126,7 @@ public function testInsertTwoRootsInTwoFlushes(): void
126
126
['00000000-0000-0000-0000-000000000021 ' , '00000000-0000-0000-0000-000000000002 ' , 6 , 1 , 7 ],
127
127
];
128
128
foreach ($ this ->fetchAllOUs () as $ i => $ a ) {
129
- self ::assertSame (
129
+ static ::assertSame (
130
130
$ expected [$ i ],
131
131
[
132
132
$ a ->getId (),
@@ -139,6 +139,14 @@ public function testInsertTwoRootsInTwoFlushes(): void
139
139
}
140
140
}
141
141
142
+ protected function getUsedEntityFixtures (): array
143
+ {
144
+ return [OU ::class];
145
+ }
146
+
147
+ /**
148
+ * @return list<OU>
149
+ */
142
150
private function fetchAllOUs (): array
143
151
{
144
152
$ categoryRepo = $ this ->em ->getRepository (OU ::class);
@@ -148,9 +156,4 @@ private function fetchAllOUs(): array
148
156
->getQuery ()
149
157
->getResult ();
150
158
}
151
-
152
- protected function getUsedEntityFixtures (): array
153
- {
154
- return [OU ::class];
155
- }
156
159
}
0 commit comments