diff --git a/tests/_data/fixtures/no-patches-defined/composer.json b/tests/_data/fixtures/no-patches-defined/composer.json new file mode 100644 index 00000000..0eb58a99 --- /dev/null +++ b/tests/_data/fixtures/no-patches-defined/composer.json @@ -0,0 +1,23 @@ +{ + "name": "cweagans/composer-patches-test-project", + "description": "Project for use in cweagans/composer-patches acceptance tests.", + "type": "project", + "license": "BSD-3-Clause", + "repositories": [ + { + "type": "path", + "url": "../../../../" + } + ], + "require": { + "cweagans/composer-patches": "*@dev", + "cweagans/composer-patches-testrepo": "~1.0" + }, + "extra": { + }, + "config": { + "allow-plugins": { + "cweagans/composer-patches": true + } + } +} diff --git a/tests/acceptance/NoPatchesDefinedCept.php b/tests/acceptance/NoPatchesDefinedCept.php new file mode 100644 index 00000000..59b41473 --- /dev/null +++ b/tests/acceptance/NoPatchesDefinedCept.php @@ -0,0 +1,13 @@ +wantTo('know that the plugin will work if loaded and not configured'); +$I->amInPath(codecept_data_dir('fixtures/no-patches-defined')); +$I->runComposerCommand('install', ['-vvv']); +$I->canSeeInComposerOutput('No patches found for cweagans/composer-patches-testrepo');