|
54 | 54 | use PHPUnit\Framework\MockObject\MockObject;
|
55 | 55 | use PHPUnit\Framework\TestCase;
|
56 | 56 | use Magento\Setup\Model\SearchConfig;
|
57 |
| - use Magento\RemoteStorage\Setup\ConfigOptionsList as RemoteFileStorageValidator; |
| 57 | + use Magento\RemoteStorage\Setup\ConfigOptionsList as RemoteStorageValidator; |
58 | 58 |
|
59 | 59 | /**
|
60 | 60 | * @SuppressWarnings(PHPMD.TooManyFields)
|
@@ -354,7 +354,7 @@ public function testInstall(array $request, array $logMessages)
|
354 | 354 | $registry = $this->createMock(Registry::class);
|
355 | 355 | $searchConfigMock = $this->getMockBuilder(SearchConfig::class)->disableOriginalConstructor()->getMock();
|
356 | 356 |
|
357 |
| - $remoteFileStorageValidatorMock = $this->getMockBuilder(RemoteFileStorageValidator::class) |
| 357 | + $remoteStorageValidatorMock = $this->getMockBuilder(RemoteStorageValidator::class) |
358 | 358 | ->disableOriginalConstructor()
|
359 | 359 | ->getMock();
|
360 | 360 |
|
@@ -391,7 +391,7 @@ public function testInstall(array $request, array $logMessages)
|
391 | 391 | [DeclarationInstaller::class, $this->declarationInstallerMock],
|
392 | 392 | [Registry::class, $registry],
|
393 | 393 | [SearchConfig::class, $searchConfigMock],
|
394 |
| - [RemoteFileStorageValidator::class, $remoteFileStorageValidatorMock], |
| 394 | + [RemoteStorageValidator::class, $remoteStorageValidatorMock], |
395 | 395 | ]);
|
396 | 396 | $this->adminFactory->expects($this->any())->method('create')->willReturn(
|
397 | 397 | $this->createMock(AdminAccount::class)
|
@@ -448,7 +448,7 @@ public function testInstallWithInvalidRemoteStorageConfiguration()
|
448 | 448 | ['Module \'Foo_One\':'],
|
449 | 449 | ['Module \'Bar_Two\':'],
|
450 | 450 | ['Installing search configuration...'],
|
451 |
| - ['Validating remote file storage configuration...'], |
| 451 | + ['Validating remote storage configuration...'], |
452 | 452 | ];
|
453 | 453 |
|
454 | 454 | $this->config->expects(static::atLeastOnce())
|
@@ -495,15 +495,15 @@ public function testInstallWithInvalidRemoteStorageConfiguration()
|
495 | 495 | $registry = $this->createMock(Registry::class);
|
496 | 496 | $searchConfigMock = $this->getMockBuilder(SearchConfig::class)->disableOriginalConstructor()->getMock();
|
497 | 497 |
|
498 |
| - $remoteFileStorageValidatorMock = $this->getMockBuilder(RemoteFileStorageValidator::class) |
| 498 | + $remoteStorageValidatorMock = $this->getMockBuilder(RemoteStorageValidator::class) |
499 | 499 | ->disableOriginalConstructor()
|
500 | 500 | ->getMock();
|
501 | 501 |
|
502 |
| - $remoteFileStorageValidatorMock |
| 502 | + $remoteStorageValidatorMock |
503 | 503 | ->expects(static::once())
|
504 | 504 | ->method('validate')
|
505 | 505 | ->with($request, $this->config)
|
506 |
| - ->willReturn(['Invalid Remote File Storage!']); |
| 506 | + ->willReturn(['Invalid Remote Storage!']); |
507 | 507 |
|
508 | 508 | $this->expectException(ValidationException::class);
|
509 | 509 |
|
@@ -534,7 +534,7 @@ public function testInstallWithInvalidRemoteStorageConfiguration()
|
534 | 534 | [DeclarationInstaller::class, $this->declarationInstallerMock],
|
535 | 535 | [Registry::class, $registry],
|
536 | 536 | [SearchConfig::class, $searchConfigMock],
|
537 |
| - [RemoteFileStorageValidator::class, $remoteFileStorageValidatorMock], |
| 537 | + [RemoteStorageValidator::class, $remoteStorageValidatorMock], |
538 | 538 | ]);
|
539 | 539 |
|
540 | 540 | $this->sampleDataState->expects(static::never())->method('hasError');
|
@@ -583,7 +583,7 @@ public function installDataProvider()
|
583 | 583 | ['Module \'Foo_One\':'],
|
584 | 584 | ['Module \'Bar_Two\':'],
|
585 | 585 | ['Installing search configuration...'],
|
586 |
| - ['Validating remote file storage configuration...'], |
| 586 | + ['Validating remote storage configuration...'], |
587 | 587 | ['Installing user configuration...'],
|
588 | 588 | ['Enabling caches:'],
|
589 | 589 | ['Current status:'],
|
@@ -635,7 +635,7 @@ public function installDataProvider()
|
635 | 635 | ['Module \'Foo_One\':'],
|
636 | 636 | ['Module \'Bar_Two\':'],
|
637 | 637 | ['Installing search configuration...'],
|
638 |
| - ['Validating remote file storage configuration...'], |
| 638 | + ['Validating remote storage configuration...'], |
639 | 639 | ['Installing user configuration...'],
|
640 | 640 | ['Enabling caches:'],
|
641 | 641 | ['Current status:'],
|
|
0 commit comments