N98\Magento\Command\System\Setup\ChangeVersionCommandTest::testModuleDoesNotExist PHP Method

testModuleDoesNotExist() public method

    public function testModuleDoesNotExist()
    {
        $application = $this->getApplication();
        $application->add(new ChangeVersionCommand());
        $command = $this->getApplication()->find('sys:setup:change-version');
        $commandTester = new CommandTester($command);
        $this->setExpectedException('InvalidArgumentException', 'No module found with name: "I_DO_NOT_EXIST"');
        $commandTester->execute(array('command' => $command->getName(), 'module' => 'I_DO_NOT_EXIST', 'version' => '1.0.0.0'));
    }