Skip to content

Commit

Permalink
Test that the plugin can be enabled and unconfigured without issues
Browse files Browse the repository at this point in the history
  • Loading branch information
cweagans committed Feb 6, 2023
1 parent eb18fea commit 2dcfb3f
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
23 changes: 23 additions & 0 deletions 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
}
}
}
13 changes: 13 additions & 0 deletions tests/acceptance/NoPatchesDefinedCept.php
@@ -0,0 +1,13 @@
<?php

/**
* @var \Codeception\Scenario $scenario
*/

use cweagans\Composer\Tests\AcceptanceTester;

$I = new AcceptanceTester($scenario);
$I->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');

0 comments on commit 2dcfb3f

Please sign in to comment.