Skip to content
This repository has been archived by the owner on May 16, 2022. It is now read-only.

Commit

Permalink
testdata: replace with plugin that work on composer 2.0
Browse files Browse the repository at this point in the history
See composer-asset-plugin thread:
fxpio/composer-asset-plugin#334
  • Loading branch information
arjun024 authored and paketo-bot committed Nov 5, 2020
1 parent 3ca9d11 commit 57c662a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions integration/deploy_a_composer_app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ func testIntegrationComposerApp(t *testing.T, when spec.G, it spec.S) {
}

buildLogs := app.BuildLogs()
Expect(buildLogs).To(ContainSubstring(fmt.Sprintf("Running `php /layers/%s/composer/composer.phar global require --no-progress friendsofphp/php-cs-fixer fxp/composer-asset-plugin:~1.3` from directory '/workspace'", strings.ReplaceAll(buildpackInfo.Buildpack.ID, "/", "_"))))
Expect(buildLogs).To(ContainSubstring(fmt.Sprintf("Running `php /layers/%s/composer/composer.phar global require --no-progress friendsofphp/php-cs-fixer squizlabs/php_codesniffer=*` from directory '/workspace'", strings.ReplaceAll(buildpackInfo.Buildpack.ID, "/", "_"))))

Expect(buildLogs).To(ContainSubstring("php-cs-fixer -h"))
Expect(buildLogs).To(ContainSubstring(fmt.Sprintf("php /layers/%s/php-composer-packages/global/vendor/bin/php-cs-fixer list", strings.ReplaceAll(buildpackInfo.Buildpack.ID, "/", "_"))))
Expand Down Expand Up @@ -237,7 +237,7 @@ func testIntegrationComposerApp(t *testing.T, when spec.G, it spec.S) {
app, err := PreparePhpApp(appName, buildpacks, debug)
Expect(err).ToNot(HaveOccurred())

Expect(app.BuildLogs()).To(ContainSubstring("Nothing to install or update"))
Expect(app.BuildLogs()).To(ContainSubstring("Nothing to install"))

Expect(app.Start()).To(Succeed())

Expand Down
2 changes: 1 addition & 1 deletion integration/testdata/composer_app_global/buildpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ php:
composer:
install_global:
- friendsofphp/php-cs-fixer
- fxp/composer-asset-plugin:~1.3
- squizlabs/php_codesniffer=*

0 comments on commit 57c662a

Please sign in to comment.