summaryrefslogtreecommitdiff
path: root/spec/integration/php
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-03-30 23:05:42 -0600
committermo khan <mo.khan@gmail.com>2020-04-02 00:08:43 -0600
commitbfd7459419921ff37ee500f0698862eea6788675 (patch)
tree9749333a7c8878b833b4642afe3071cf1c14012c /spec/integration/php
parent43bcbbd04342faa497725c5b0be3c6d944d850da (diff)
Reproduce failure with go modules scanning
* Install sudo for existing configurations * Detect dependencies in a gomodules project * Add CHANGELOG entry and bump version * Symlink to $GOPATH for non go modules projects * Remove problematic go get setup
Diffstat (limited to 'spec/integration/php')
-rw-r--r--spec/integration/php/composer_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/integration/php/composer_spec.rb b/spec/integration/php/composer_spec.rb
index 1419dd4..62ff598 100644
--- a/spec/integration/php/composer_spec.rb
+++ b/spec/integration/php/composer_spec.rb
@@ -9,10 +9,11 @@ RSpec.describe "composer" do
runner.add_file('composer.json', fixture_file_content('php/drupal_composer.json'))
report = runner.scan
+
expect(report).to match_schema(version: '2.0')
expect(report[:version]).not_to be_empty
expect(report[:licenses]).not_to be_empty
- expect(report[:dependencies].map { |x| x[:name] }).to match_array(%w[
+ expect(report.dependency_names).to match_array(%w[
asm89/stack-cors
behat/mink
behat/mink-browserkit-driver