diff --git a/.travis.yml b/.travis.yml index acf5ddc..dd21239 100644 --- a/.travis.yml +++ b/.travis.yml @@ -79,7 +79,6 @@ matrix: # disable xdebug for performance in composer - phpenv config-rm xdebug.ini || echo "xdebug is not installed" - travis_retry composer self-update && composer --version - - travis_retry composer global require "fxp/composer-asset-plugin:^1.3.1" --no-plugins - travis_retry composer install --prefer-dist --no-interaction before_script: - node --version @@ -118,7 +117,6 @@ install: phpenv config-rm xdebug.ini || echo "xdebug is not installed" fi - travis_retry composer self-update && composer --version - - travis_retry composer global require "fxp/composer-asset-plugin:^1.3.1" --no-plugins - export PATH="$HOME/.composer/vendor/bin:$PATH" # core framework: - travis_retry composer install --prefer-dist --no-interaction diff --git a/composer.json b/composer.json index f74a82e..3766521 100644 --- a/composer.json +++ b/composer.json @@ -84,6 +84,12 @@ "phpunit/phpunit": "~4.4", "cebe/indent": "~1.0.2" }, + "repositories": [ + { + "type": "composer", + "url": "https://asset-packagist.org" + } + ], "suggest": { "yiisoft/yii2-coding-standards": "you can use this package to check for code style issues when contributing to yii" }, diff --git a/tests/TestCase.php b/tests/TestCase.php index 829be9f..41cb70e 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -68,6 +68,10 @@ abstract class TestCase extends \PHPUnit\Framework\TestCase 'id' => 'testapp', 'basePath' => __DIR__, 'vendorPath' => $this->getVendorPath(), + 'aliases' => [ + '@bower' => '@vendor/bower-asset', + '@npm' => '@vendor/npm-asset', + ], 'components' => [ 'request' => [ 'cookieValidationKey' => 'wefJDF8sfdsfSDefwqdxj9oq',