Skip to content

Commit ebe4569

Browse files
MCLOUD-13493: PHP test fixes
1 parent 70f8ef3 commit ebe4569

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/App/Logger/HandlerFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function create(string $handler): AbstractProcessingHandler
109109
: Logger::INFO;
110110
$handlerInstance = new StreamHandler(
111111
$configuration->get('stream'),
112-
$minLevel ?: $defaultLevelStream
112+
$minLevel ?: Logger::INFO
113113
);
114114
break;
115115
case static::HANDLER_EMAIL:

src/Test/Unit/Service/ValidatorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ public function validateVersionsDataProvider(): array
320320
[
321321
ServiceInterface::NAME_OPENSEARCH => '1.2'
322322
],
323-
0
323+
1
324324
],
325325
[
326326
'2.4.3',
@@ -399,7 +399,7 @@ public function validateVersionsDataProvider(): array
399399
ServiceInterface::NAME_OPENSEARCH => '1.2',
400400
ServiceInterface::NAME_RABBITMQ => '3.8.0'
401401
],
402-
0
402+
1
403403
],
404404
[
405405
'2.4.3-p3',

src/Test/Unit/Step/Deploy/InstallUpdate/Install/Setup/InstallCommandFactoryTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ public function testExecuteWithESauthOptions(): void
437437
['2.4.0', true],
438438
['2.4.2', false]
439439
]);
440-
$this->elasticSearchMock->expects($this->once())
440+
$this->elasticSearchMock->expects($this->any())
441441
->method('isInstalled')
442442
->willReturn(true);
443443
$this->elasticSearchMock->expects($this->once())
@@ -464,7 +464,7 @@ public function testExecuteWithESauthOptions(): void
464464
]
465465
]);
466466

467-
$this->openSearchMock->expects($this->once())
467+
$this->openSearchMock->expects($this->any())
468468
->method('isInstalled')
469469
->willReturn(false);
470470
$this->openSearchMock->expects($this->never())
@@ -507,7 +507,7 @@ public function testExecuteWithOSauthOptions(
507507
->method('satisfies')
508508
->with('>=2.3.7-p3 <2.4.0 || >=2.4.3-p2')
509509
->willReturn(true);
510-
$this->openSearchMock->expects($this->once())
510+
$this->openSearchMock->expects($this->any())
511511
->method('isInstalled')
512512
->willReturn(true);
513513
$this->openSearchMock->expects($this->once())
@@ -534,7 +534,7 @@ public function testExecuteWithOSauthOptions(
534534
]
535535
]);
536536

537-
$this->elasticSearchMock->expects($this->once())
537+
$this->elasticSearchMock->expects($this->any())
538538
->method('isInstalled')
539539
->willReturn(false);
540540
$this->elasticSearchMock->expects($this->never())

0 commit comments

Comments
 (0)