[FIX] WS fixes

- no newline at the end of file
This commit is contained in:
Tom Klingenberg committed 2015-11-11 01:18:16 +01:00
1 parent 157a4c3b51
commit bdebdb1753
131 files changed
+131 -131

No files matched your search

+1 -1
View File
@@ -27,4 +27,4 @@ before_script:
script:
- vendor/bin/phpunit --debug
- php dev/tests/check-coverage.php clover.xml ${COVERAGE}
- php dev/tests/check-coverage.php clover.xml ${COVERAGE}
+1 -1
View File
@@ -19,4 +19,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
+1 -1
View File
@@ -104,4 +104,4 @@ Build phar with:
<apigen source="src" destination="doc/api" title="n98-magerun API" deprecated="true" todo="true" />
</target>
</project>
</project>
+1 -1
View File
@@ -7,4 +7,4 @@ $application = require_once 'phar://n98-magerun2.phar/src/bootstrap.php';
$application->setPharMode(true);
$application->run();
__HALT_COMPILER();
__HALT_COMPILER();
+1 -1
View File
@@ -162,4 +162,4 @@ class ApplicationTest extends TestCase
// Check for module command
$this->assertInstanceOf('Acme\FooCommand', $application->find('acme:foo'));
}
}
}
@@ -24,4 +24,4 @@ class ListCommandTest extends TestCase
$this->assertContains('email', $commandTester->getDisplay());
$this->assertContains('status', $commandTester->getDisplay());
}
}
}
@@ -38,4 +38,4 @@ class CleanCommandTest extends TestCase
$this->assertContains('config cache cleaned', $display);
$this->assertContains('layout cache cleaned', $display);
}
}
}
@@ -42,4 +42,4 @@ class DisableCommandTest extends TestCase
$this->assertEquals($expectedOutput, $commandTester->getDisplay());
}
}
}
@@ -41,4 +41,4 @@ class EnableCommandTest extends TestCase
$this->assertEquals($expectedOutput, $commandTester->getDisplay());
}
}
}
@@ -22,4 +22,4 @@ class FlushCommandTest extends TestCase
$this->assertRegExp('/cache flushed/', $commandTester->getDisplay());
}
}
}
}
@@ -49,4 +49,4 @@ class ListCommandTest extends TestCase
$this->assertEquals(0, $disabledCacheTypes);
}
}
}
@@ -36,4 +36,4 @@ class InfoCommandTest extends TestCase
$this->assertNotRegExp('/MySQL-Cli-String/', $commandTester->getDisplay());
$this->assertContains('mysql -h', $commandTester->getDisplay());
}
}
}
@@ -25,4 +25,4 @@ class QueryCommandTest extends TestCase
$this->assertContains('catalog_product_entity', $commandTester->getDisplay());
$this->assertContains('wishlist', $commandTester->getDisplay());
}
}
}
@@ -69,4 +69,4 @@ class StatusCommandTest extends TestCase
$commandTester->getDisplay()
);
}
}
}
@@ -68,4 +68,4 @@ class VariablesCommandTest extends TestCase
$this->assertRegExp('~max_binlog_stmt_cache_size," [0-9\.]+\s[A-Z]{1,2}"~', $commandTester->getDisplay());
$this->assertRegExp('~myisam_max_sort_file_size," [0-9\.]+\s[A-Z]{1,2}"~', $commandTester->getDisplay());
}
}
}
@@ -54,4 +54,4 @@ class ListCommandTest extends TestCase
$this->assertEmpty($this->command->getModuleList());
}
}
}
@@ -37,4 +37,4 @@ class ListCommandTest extends TestCase
$this->assertContains(self::CRONTAB_OBSERVER_NAME, $commandTester->getDisplay());
}
}
}
@@ -35,4 +35,4 @@ class TemplateHintsBlocksCommandTest extends TestCase
$this->assertRegExp('/Template Hints Blocks disabled/', $commandTester->getDisplay());
}
}
}
@@ -35,4 +35,4 @@ class TemplateHintsCommandTest extends TestCase
$this->assertRegExp('/Template Hints disabled/', $commandTester->getDisplay());
}
}
}
@@ -20,4 +20,4 @@ class HelpCommandTest extends TestCase
$this->assertContains('The help command displays help for a given command', $commandTester->getDisplay());
}
}
}
@@ -23,4 +23,4 @@ class ListCommandTest extends TestCase
$commandTester->getDisplay()
);
}
}
}
@@ -35,4 +35,4 @@ class SymlinksCommandTest extends TestCase
$this->assertRegExp('/Symlinks denied/', $commandTester->getDisplay());
}
}
}
@@ -22,4 +22,4 @@ class HistoryCommandTest extends TestCase
$this->assertRegExp('/Last executed jobs/', $commandTester->getDisplay());
}
}
}
@@ -18,4 +18,4 @@ class ListCommandTest extends TestCase
$this->assertRegExp('/Cronjob List/', $commandTester->getDisplay());
}
}
}
@@ -22,4 +22,4 @@ class RunCommandTest extends TestCase
$this->assertContains('Run Magento\Log\Model\Cron::logClean done', $commandTester->getDisplay());
}
}
}
@@ -46,4 +46,4 @@ class InfoCommandTest extends TestCase
$this->assertEmpty(array_diff($counts, array_keys($this->command->getInfo())));
}
}
}
@@ -92,4 +92,4 @@ class MaintenanceCommandTest extends TestCase
$commandTester->getDisplay()
);
}
}
}
@@ -45,4 +45,4 @@ class CompareVersionsCommandTest extends TestCase
$this->assertFileExists(vfsStream::url('root/junit.xml'));
}
}
}
@@ -22,4 +22,4 @@ class BaseUrlListCommandTest extends TestCase
$this->assertRegExp('/unsecure_baseurl/', $commandTester->getDisplay());
$this->assertRegExp('/secure_baseurl/', $commandTester->getDisplay());
}
}
}
@@ -19,4 +19,4 @@ class ListCommandTest extends TestCase
$this->assertRegExp('/id/', $commandTester->getDisplay());
$this->assertRegExp('/code/', $commandTester->getDisplay());
}
}
}
@@ -30,4 +30,4 @@ class ListCommandTest extends TestCase
$this->assertRegExp('/http/', $commandTester->getDisplay());
$this->assertRegExp('/suffix/', $commandTester->getDisplay());
}
}
}
@@ -20,4 +20,4 @@ class ListCommandTest extends TestCase
$this->assertRegExp('/id/', $commandTester->getDisplay());
$this->assertRegExp('/code/', $commandTester->getDisplay());
}
}
}
+1 -1
View File
@@ -23,4 +23,4 @@ db:dump --print-only-filename ${foo}
# Set a config var and change it to previous value in one "session"
config:get web/secure/base_url
config:get web/seo/use_rewrites
config:set "web/seo/use_rewrites" 1
config:set "web/seo/use_rewrites" 1
@@ -17,4 +17,4 @@ class FooCommand extends AbstractMagentoCommand
{
}
}
}
@@ -3,4 +3,4 @@ autoloaders:
commands:
customCommands:
- TestModule\FooCommand
- TestModule\FooCommand
@@ -5,4 +5,4 @@ namespace N98MagerunTest;
class AlternativeConfigModel extends \Mage_Core_Model_Config
{
}
}
@@ -21,4 +21,4 @@ class TestDummyCommand extends \N98\Magento\Command\AbstractMagentoCommand
$output->writeln('dummy');
}
}
}
}
+1 -1
View File
@@ -53,4 +53,4 @@ class ArrayFunctionsTest extends \PHPUnit_Framework_TestCase
),
);
}
}
}
@@ -79,4 +79,4 @@ class DatabaseHelperTest extends TestCase
$this->assertContains('catalog_product_entity', $tables);
$this->assertNotContains('catalogrule', $tables);
}
}
}
@@ -167,4 +167,4 @@ class MagentoHelperTest extends TestCase
$this->assertEquals(vfsStream::url('root/htdocs'), $helper->getRootFolder());
$this->assertEquals(\N98\Magento\Application::MAGENTO_MAJOR_VERSION_2, $helper->getMajorVersion());
}
}
}
+1 -1
View File
@@ -60,4 +60,4 @@ class DateTimeTest extends \PHPUnit_Framework_TestCase
),
);
}
}
}
+1 -1
View File
@@ -203,4 +203,4 @@ class FilesystemTest extends \PHPUnit_Framework_TestCase
array(2048, 2, '2.00 KB'),
);
}
}
}
+1 -1
View File
@@ -13,4 +13,4 @@ $paths = array(
$base . '/lib',
);
set_include_path(implode(PATH_SEPARATOR, $paths) . PATH_SEPARATOR . get_include_path());
unset($paths, $base);
unset($paths, $base);
+1 -1
View File
@@ -32,4 +32,4 @@ if ($coverage < $percentage) {
exit(1);
}
echo 'Code coverage is ' . $coverage . '% - OK!' . PHP_EOL;
echo 'Code coverage is ' . $coverage . '% - OK!' . PHP_EOL;
+1 -1
View File
@@ -351,4 +351,4 @@ Example:
# This will register the variable ${foo} with value bar.
It's possible to define multiple values by passing more than one option.
It's possible to define multiple values by passing more than one option.
@@ -59,4 +59,4 @@ class Event extends BaseEvent
{
return $this->application;
}
}
}
@@ -8,4 +8,4 @@ final class Events
* @type string
*/
const RUN_BEFORE = 'n98-magerun.application.console.run.before';
}
}
@@ -193,4 +193,4 @@ abstract class AbstractMagentoStoreConfigCommand extends AbstractMagentoCommand
{
}
}
}
@@ -22,4 +22,4 @@ abstract class AbstractAdminUserCommand extends AbstractMagentoCommand
$this->userModel = $userModel;
}
}
}
@@ -60,4 +60,4 @@ class ChangePasswordCommand extends AbstractAdminUserCommand
}
}
}
}
}
@@ -47,4 +47,4 @@ class ListCommand extends AbstractAdminUserCommand
->renderByFormat($output, $table, $input->getOption('format'));
}
}
}
}
@@ -88,4 +88,4 @@ abstract class AbstractModifierCommand extends AbstractMagentoCommand
$output->writeln(sprintf(static::SUCCESS_MESSAGE, implode(', ', $touchedTypes)));
}
}
}
@@ -35,4 +35,4 @@ class DisableCommand extends AbstractModifierCommand
)
;
}
}
}
@@ -35,4 +35,4 @@ class EnableCommand extends AbstractModifierCommand
'Output Format. One of [' . implode(',', RendererFactory::getFormats()) . ']'
);
}
}
}
@@ -34,4 +34,4 @@ class FlushCommand extends AbstractModifierCommand
}
}
}
}
}
@@ -8,4 +8,4 @@ interface CommandConfigAware
* @param array $commandConfig
*/
public function setCommandConfig(array $commandConfig);
}
}
@@ -112,4 +112,4 @@ abstract class AbstractConfigCommand extends AbstractMagentoCommand
return $scopeId;
}
}
}
@@ -166,4 +166,4 @@ HELP;
return $deleted;
}
}
}
@@ -196,4 +196,4 @@ HELP;
$output->writeln($line);
}
}
}
}
@@ -64,4 +64,4 @@ HELP;
$output->writeln('<comment>' . $input->getArgument('path') . "</comment> => <comment>" . $input->getArgument('value') . '</comment>');
}
}
}
}
@@ -409,4 +409,4 @@ class ConfigurationLoader
{
return __DIR__;
}
}
}
@@ -117,4 +117,4 @@ class InfoCommand extends AbstractCustomerCommand
return $customer;
}
}
}
@@ -66,4 +66,4 @@ HELP;
$output->writeln('<comment>No customers found</comment>');
}
}
}
}
@@ -120,4 +120,4 @@ abstract class AbstractDatabaseCommand extends AbstractMagentoCommand
{
return $this->getHelper('database')->resolveTables($excludes, $definitions, $resolved);
}
}
}
@@ -40,4 +40,4 @@ class ConsoleCommand extends AbstractDatabaseCommand
proc_close($process);
}
}
}
}
@@ -274,4 +274,4 @@ HELP;
$result = $query->fetch(\PDO::FETCH_ASSOC);
return $result;
}
}
}
@@ -29,4 +29,4 @@ class CreateComposerFile extends AbstractSubCommand
return true;
}
}
}
@@ -25,4 +25,4 @@ class CreateModmanFile extends AbstractSubCommand
return true;
}
}
}
@@ -23,4 +23,4 @@ class CreateModuleConfigFile extends AbstractSubCommand
$this->output->writeln('<info>Created file: <comment>' . $outFile .'<comment></info>');
}
}
}
@@ -23,4 +23,4 @@ class CreateModuleCrontabFile extends AbstractSubCommand
$this->output->writeln('<info>Created file: <comment>' . $outFile .'<comment></info>');
}
}
}
@@ -23,4 +23,4 @@ class CreateModuleDiFile extends AbstractSubCommand
$this->output->writeln('<info>Created file: <comment>' . $outFile .'<comment></info>');
}
}
}
@@ -23,4 +23,4 @@ class CreateModuleEventsFile extends AbstractSubCommand
$this->output->writeln('<info>Created file: <comment>' . $outFile .'<comment></info>');
}
}
}
@@ -65,4 +65,4 @@ class CreateModuleFolders extends AbstractSubCommand
return true;
}
}
}
@@ -44,4 +44,4 @@ class CreateModuleRegistrationFiles extends AbstractSubCommand
$this->output->writeln('<info>Created file: <comment>' . $outFile . '<comment></info>');
}
}
}
@@ -32,4 +32,4 @@ class CreateReadmeFile extends AbstractSubCommand
return true;
}
}
}
@@ -49,4 +49,4 @@ class CreateSetupFiles extends AbstractSubCommand
);
$this->output->writeln('<info>Created file: <comment>' . $setupFolder . '/UpgradeData.php' .'<comment></info>');
}
}
}
@@ -86,4 +86,4 @@ class ListCommand extends AbstractMagentoCommand
$this->moduleList[] = [$info['name'], $info['setup_version']];
}
}
}
}
@@ -129,4 +129,4 @@ class ListCommand extends AbstractMagentoCommand
->setRows($table)
->renderByFormat($output, $table, $input->getOption('format'));
}
}
}
@@ -47,4 +47,4 @@ class SymlinksCommand extends AbstractMagentoStoreConfigCommand
* @var bool
*/
protected $withAdminStore = true;
}
}
@@ -30,4 +30,4 @@ class TemplateHintsBlocksCommand extends AbstractMagentoStoreConfigCommand
* @var string
*/
protected $scope = self::SCOPE_STORE_VIEW;
}
}
@@ -30,4 +30,4 @@ class TemplateHintsCommand extends AbstractMagentoStoreConfigCommand
* @var string
*/
protected $scope = self::SCOPE_STORE_VIEW;
}
}
@@ -50,4 +50,4 @@ class FlushCommand extends AbstractMagentoCommand
$output->writeln('<info>Removed <comment>' . $directory->getBasename() . '</comment> folder</info>');
}
}
}
}
@@ -52,4 +52,4 @@ HELP;
->renderByFormat($output, $table, $input->getOption('format'));
}
}
}
}
@@ -55,4 +55,4 @@ class ChooseInstallationFolder extends AbstractSubCommand
return true;
}
}
}
@@ -191,4 +191,4 @@ class CreateDatabase extends AbstractSubCommand
return $this->_argv;
}
}
}
@@ -86,4 +86,4 @@ class DownloadMagento extends AbstractSubCommand
return $targetPath;
}
}
}
@@ -75,4 +75,4 @@ class InstallComposer extends AbstractSubCommand
return $this->config['installationFolder'] . '/composer.phar';
}
}
}
@@ -34,4 +34,4 @@ class InstallComposerPackages extends AbstractSubCommand
return true;
}
}
}
@@ -278,4 +278,4 @@ class InstallMagento extends AbstractSubCommand
$this->output->writeln('<comment>Encryption Key:</comment> <info>' . $encryptionKey . '</info>');
}
}
}
}
@@ -166,4 +166,4 @@ class InstallSampleData extends AbstractSubCommand
$this->output->write($buffer, false);
});
}
}
}
@@ -28,4 +28,4 @@ class PostInstallation extends AbstractSubCommand
*/
//$this->getCommand()->getApplication()->run(new StringInput('sys:check'), $this->output);
}
}
}
@@ -49,4 +49,4 @@ class PreCheckPhp extends AbstractSubCommand
throw new \RuntimeException($errorMessage);
}
}
}
}
@@ -22,4 +22,4 @@ class RemoveEmptyFolders extends AbstractSubCommand
}
}
}
}
}
@@ -57,4 +57,4 @@ class SelectMagentoVersion extends AbstractSubCommand
return true;
}
}
}
@@ -48,4 +48,4 @@ class SetDirectoryPermissions extends AbstractSubCommand
$this->output->writeln('<error>' . $e->getMessage() . '</error>');
}
}
}
}
@@ -85,4 +85,4 @@ abstract class AbstractSubCommand implements SubCommandInterface
* @return bool
*/
abstract public function execute();
}
}
@@ -153,4 +153,4 @@ class ConfigBag extends \ArrayObject
{
return $this->offsetGet($key);
}
}
}
@@ -95,4 +95,4 @@ class SubCommandFactory
{
return $this->config;
}
}
}
@@ -42,4 +42,4 @@ interface SubCommandInterface
* @return bool
*/
public function execute();
}
}
@@ -72,4 +72,4 @@ class HistoryCommand extends AbstractCronCommand
->setHeaders(array('Job', 'Status', 'Finished'))
->renderByFormat($output, $table, $input->getOption('format'));
}
}
}
Loaded 100 of 131 files, more files were not shown because too many files have changed in this diff. Show more