diff options
| author | mo khan <mo.khan@gmail.com> | 2020-08-12 13:36:13 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-08-13 10:38:52 -0600 |
| commit | ead56ee6bdd3c49f575a0607e513cd1c9a947fad (patch) | |
| tree | 6e55a2b395da34dd47c17aef0eb759cab42914aa /spec/integration/php | |
| parent | 6139087cee470d7d1ca9585b7001469298e848b4 (diff) | |
Ensure drupal pkgs are detected correctly
* Use same composer.json and composer.lock file from issue
* Check if vendor path exists before specifying env vars
* Install php from deb package
Diffstat (limited to 'spec/integration/php')
| -rw-r--r-- | spec/integration/php/composer_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/integration/php/composer_spec.rb b/spec/integration/php/composer_spec.rb index b5c2d15..839f0b7 100644 --- a/spec/integration/php/composer_spec.rb +++ b/spec/integration/php/composer_spec.rb @@ -83,6 +83,20 @@ RSpec.describe "composer" do end end + context "when scanning Drupal dependencies" do + let(:env) { { 'SETUP_CMD' => 'bash setup.sh' } } + + before do + runner.mount(dir: fixture_file('php/composer/drupal-core')) + end + + it 'detects the licenses correctly' do + expect(subject.licenses_for('drupal/core-composer-scaffold')).to match_array(['GPL-2.0-or-later']) + expect(subject.licenses_for('drupal/core-project-message')).to match_array(['GPL-2.0-or-later']) + expect(subject.licenses_for('drupal/core-recommended')).to match_array(['GPL-2.0-or-later']) + end + end + context "when fetching dependencies from a custom registry" do before do add_host('composer.test', '127.0.0.1') |
