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

testSetupNameNotFound() public method

    public function testSetupNameNotFound()
    {
        $application = $this->getApplication();
        $application->add(new ChangeVersionCommand());
        $command = $this->getApplication()->find('sys:setup:change-version');
        $commandTester = new CommandTester($command);
        $this->setExpectedException('InvalidArgumentException', 'Error no setup found with the name: "no_setup_exists"');
        $commandTester->execute(array('command' => $command->getName(), 'module' => 'Mage_Weee', 'version' => '1.6.0.0', 'setup' => 'no_setup_exists'));
    }