Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename console command Test to LookupTest #70

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Console/Command/Test.php → Console/Command/LookupTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class Test extends Command
class LookupTest extends Command
{

const NAME_ARGUMENT = "vat";
Expand Down Expand Up @@ -60,7 +60,7 @@ protected function execute(
protected function configure()
{
$this->setName("experius_postcode:test");
$this->setDescription("Test");
$this->setDescription("Lookup Address Test");
$this->setDefinition([
new InputArgument(self::NAME_ARGUMENT, InputArgument::OPTIONAL, "vat"),
new InputOption(self::NAME_OPTION, "-a", InputOption::VALUE_NONE, "Option functionality")
Expand Down
4 changes: 2 additions & 2 deletions etc/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<type name="Magento\Framework\Console\CommandList">
<arguments>
<argument name="commands" xsi:type="array">
<item name="Experius_Postcode_Test" xsi:type="object">Experius\Postcode\Console\Command\Test</item>
<item name="Experius_Postcode_Test" xsi:type="object">Experius\Postcode\Console\Command\LookupTest</item>
</argument>
</arguments>
</type>
<preference for="Experius\Postcode\Api\PostcodeManagementInterface" type="Experius\Postcode\Model\PostcodeManagement" />
</config>
</config>