Skip to content

Commit 2ed87c1

Browse files
Update composerFileTest which was not filled in correctly.
1 parent d10e13a commit 2ed87c1

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/Test/Unit/Config/Validator/Build/ComposerFileTest.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ protected function setUp(): void
6868
}
6969

7070
/**
71-
* @throws UndefinedPackageException
71+
* @inheritdoc
7272
*/
7373
public function testValidateCorrectComposerJson(): void
7474
{
@@ -86,7 +86,7 @@ public function testValidateCorrectComposerJson(): void
8686
}
8787

8888
/**
89-
* @throws UndefinedPackageException
89+
* @inheritdoc
9090
*/
9191
public function testValidateCorrectLaminasComposerJson(): void
9292
{
@@ -104,7 +104,7 @@ public function testValidateCorrectLaminasComposerJson(): void
104104
}
105105

106106
/**
107-
* @throws UndefinedPackageException
107+
* @inheritdoc
108108
*/
109109
public function testValidateCorrectAutoload243ComposerJson(): void
110110
{
@@ -122,7 +122,7 @@ public function testValidateCorrectAutoload243ComposerJson(): void
122122
}
123123

124124
/**
125-
* @throws UndefinedPackageException
125+
* @inheritdoc
126126
*/
127127
public function testValidateWrongComposerJson(): void
128128
{
@@ -151,7 +151,7 @@ public function testValidateWrongComposerJson(): void
151151
}
152152

153153
/**
154-
* @throws UndefinedPackageException
154+
* @inheritdoc
155155
*/
156156
public function testValidateMagentoLower23(): void
157157
{
@@ -168,14 +168,14 @@ public function testValidateMagentoLower23(): void
168168
}
169169

170170
/**
171-
* @throws UndefinedPackageException
171+
* @inheritdoc
172172
*/
173173
public function testValidateMagentoHigherEqual243(): void
174174
{
175-
$this->magentoVersionMock->expects($this->exactly(1))
175+
$this->magentoVersionMock->expects($this->exactly(2))
176176
->method('isGreaterOrEqual')
177-
->withConsecutive(['2.3'])
178-
->willReturnOnConsecutiveCalls(false);
177+
->withConsecutive(['2.3'], ['2.4.3'])
178+
->willReturnOnConsecutiveCalls(true, true);
179179
$this->fileListMock->expects($this->never())
180180
->method('getMagentoComposer');
181181
$this->resultFactoryMock->expects($this->once())
@@ -185,7 +185,7 @@ public function testValidateMagentoHigherEqual243(): void
185185
}
186186

187187
/**
188-
* @throws UndefinedPackageException
188+
* @inheritdoc
189189
*/
190190
public function testValidateComposerFileNotExists(): void
191191
{

0 commit comments

Comments
 (0)