Skip to content

Commit 4c216f3

Browse files
committed
MQE-2114: Add additional checks to the annotations static check
1 parent 6977262 commit 4c216f3

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

dev/tests/unit/Magento/FunctionalTestFramework/StaticCheck/AnnotationsCheckTest.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ public function testValidateRequiredAnnotationsNoError()
5858

5959
// mock test object
6060
$test = AspectMock::double(
61-
TestObject::class, ['getAnnotations' => $annotations, 'getName' => 'AnnotationsCheckTest']
61+
TestObject::class,
62+
['getAnnotations' => $annotations, 'getName' => 'AnnotationsCheckTest']
6263
)->make();
6364

6465
$validateRequiredAnnotations = $this->staticCheckClass->getMethod('validateRequiredAnnotations');
@@ -100,7 +101,8 @@ public function testValidateRequiredAnnotationsMissing()
100101

101102
// mock test object
102103
$test = AspectMock::double(
103-
TestObject::class, ['getAnnotations' => $annotations, 'getName' => 'AnnotationsCheckTest']
104+
TestObject::class,
105+
['getAnnotations' => $annotations, 'getName' => 'AnnotationsCheckTest']
104106
)->make();
105107

106108
$validateRequiredAnnotations = $this->staticCheckClass->getMethod('validateRequiredAnnotations');
@@ -137,7 +139,8 @@ public function testValidateRequiredAnnotationsMissingNoTestCaseId()
137139

138140
// mock test object
139141
$test = AspectMock::double(
140-
TestObject::class, ['getAnnotations' => $annotations, 'getName' => 'AnnotationsCheckTest']
142+
TestObject::class,
143+
['getAnnotations' => $annotations, 'getName' => 'AnnotationsCheckTest']
141144
)->make();
142145

143146
$validateRequiredAnnotations = $this->staticCheckClass->getMethod('validateRequiredAnnotations');
@@ -178,7 +181,8 @@ public function testValidateRequiredAnnotationsEmpty()
178181

179182
// mock test object
180183
$test = AspectMock::double(
181-
TestObject::class, ['getAnnotations' => $annotations, 'getName' => 'AnnotationsCheckTest']
184+
TestObject::class,
185+
['getAnnotations' => $annotations, 'getName' => 'AnnotationsCheckTest']
182186
)->make();
183187

184188
$validateRequiredAnnotations = $this->staticCheckClass->getMethod('validateRequiredAnnotations');

0 commit comments

Comments
 (0)