-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix SonarQube issues
- Loading branch information
Showing
32 changed files
with
321 additions
and
547 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace spec\Omikron\FactFinder\Shopware6\Config; | ||
|
||
use PhpSpec\ObjectBehavior; | ||
use Shopware\Core\System\SystemConfig\SystemConfigService; | ||
|
||
class FtpConfigSpec extends ObjectBehavior | ||
{ | ||
function let(SystemConfigService $configService) | ||
public function let(SystemConfigService $configService): void | ||
{ | ||
$this->beConstructedWith($configService); | ||
} | ||
|
||
function it_should_use_channel_name_as_part_of_uploaded_file_name(SystemConfigService $configService) | ||
public function it_should_use_channel_name_as_part_of_uploaded_file_name(SystemConfigService $configService): void | ||
{ | ||
$salesChannelId = '1'; | ||
$channel = 'ff_channel_name'; | ||
$configService->get('OmikronFactFinder.config.channel', $salesChannelId)->willReturn($channel); | ||
|
||
$this->getUploadFileName($salesChannelId)->shouldContain($channel); | ||
} | ||
} |
Oops, something went wrong.