"bin": [
"drush"
],
+ "repositories": {
+ "drupal_org": {
+ "type": "composer",
+ "url": "https://packages.drupal.org/8"
+ }
+ },
"require": {
"php": ">=5.6.0",
"ext-dom": "*",
- "chi-teck/drupal-code-generator": "^1.21.0",
+ "chi-teck/drupal-code-generator": "^1.27.0",
"composer/semver": "^1.4",
- "consolidation/annotated-command": "^2.8.1",
- "consolidation/config": "^1.0.9",
+ "consolidation/annotated-command": "^2.9.1",
+ "consolidation/config": "^1.1.0",
"consolidation/output-formatters": "^3.1.12",
"consolidation/robo": "^1.1.5",
+ "consolidation/site-alias": "^1.1.5",
"grasmash/yaml-expander": "^1.1.1",
"league/container": "~2",
"psr/log": "~1.0",
"psy/psysh": "~0.6",
- "sebastian/version": "^1|^2",
- "symfony/config": "~2.2|^3",
- "symfony/console": "~2.7|^3",
- "symfony/event-dispatcher": "~2.7|^3",
- "symfony/finder": "~2.7|^3",
- "symfony/process": "~2.7|^3",
- "symfony/var-dumper": "~2.7|^3",
- "symfony/yaml": "~2.3|^3",
+ "symfony/config": "^3.4",
+ "symfony/console": "^3.4",
+ "symfony/event-dispatcher": "^3.4",
+ "symfony/finder": "^3.4",
+ "symfony/process": "^3.4",
+ "symfony/var-dumper": "^3.4",
+ "symfony/yaml": "^3.4",
"webflo/drupal-finder": "^1.1",
"webmozart/path-util": "^2.1.0"
},
"require-dev": {
"lox/xhprof": "dev-master",
- "phpunit/phpunit": "^4.8|^5.5.4",
- "squizlabs/php_codesniffer": "^2.7"
+ "g1a/composer-test-scenarios": "^2.2.0",
+ "phpunit/phpunit": "^4.8.36 || ^6.1",
+ "squizlabs/php_codesniffer": "^2.7",
+ "composer/installers": "^1.2",
+ "cweagans/composer-patches": "~1.0",
+ "webflo/drupal-core-strict": "8.6.x-dev",
+ "drupal/empty_theme": "1.0",
+ "drupal/devel": "^1.0@RC",
+ "drupal/alinks": "1.0.0",
+ "vlucas/phpdotenv": "^2.4"
},
"autoload": {
"psr-4": {
"Unish\\": "tests/"
}
},
+ "autoload-dev": {
+ "psr-4": {
+ "Drush\\": "isolation/src/"
+ },
+ "files": ["tests/load.environment.php"]
+ },
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true,
+ "process-timeout": 2400,
"platform": {
"php": "5.6"
}
},
"scripts": {
- "cs": "phpcs -n --standard=PSR2 src tests examples",
- "cbf": "phpcbf -n --standard=PSR2 src tests examples",
+ "cs": "phpcs",
+ "cbf": "phpcbf",
"lint": [
"find includes -name '*.inc' -print0 | xargs -0 -n1 php -l",
"find src -name '*.php' -print0 | xargs -0 -n1 php -l",
"find tests -name '*.php' -print0 | xargs -0 -n1 php -l"
],
+ "test": [
+ "@lint",
+ "@unit",
+ "@cs",
+ "@functional"
+ ],
"api": "PATH=$HOME/bin:$PATH sami.phar --ansi update sami-config.php",
"sami-install": "mkdir -p $HOME/bin && curl --output $HOME/bin/sami.phar http://get.sensiolabs.org/sami.phar && chmod +x $HOME/bin/sami.phar",
- "isolation": "cd isolation && vendor/bin/phpunit --colors=always",
- "post-update-cmd": "cd isolation && composer update"
+ "scenario": "scenarios/install",
+ "sut": "./drush --uri=dev",
+ "sut:si": "./drush site:install testing --uri=dev --sites-subdir=dev --db-url=mysql://root:password@mariadb/unish_dev -v",
+ "unit": "phpunit --colors=always",
+ "functional": "phpunit --colors=always --configuration tests",
+ "post-update-cmd": [
+ "create-scenario isolation --autoload-dir isolation --autoload-dir internal-copy --keep '\\(psr/log\\|consolidation/config\\|site-alias\\|var-dumper\\|symfony/finder\\|drupal-finder\\|path-util\\|vlucas/phpdotenv\\|xhprof\\)' 'phpunit/phpunit:^5.5.4'",
+ "create-scenario isolation-phpunit4 --base isolation --autoload-dir isolation --autoload-dir internal-copy 'phpunit/phpunit:^4.8.36'"
+ ]
},
"extra": {
+ "installer-paths": {
+ "sut/core": ["type:drupal-core"],
+ "sut/libraries/{$name}": ["type:drupal-library"],
+ "sut/modules/unish/{$name}": ["drupal/devel"],
+ "sut/themes/unish/{$name}": ["drupal/empty_theme"],
+ "sut/modules/contrib/{$name}": ["type:drupal-module"],
+ "sut/profiles/contrib/{$name}": ["type:drupal-profile"],
+ "sut/themes/contrib/{$name}": ["type:drupal-theme"],
+ "sut/drush/contrib/{$name}": ["type:drupal-drush"]
+ },
"branch-alias": {
- "dev-master": "9.0.x-dev"
+ "dev-master": "9.x-dev"
}
}
}