Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace missing test package #113

Merged
merged 3 commits into from
Jan 28, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions features/package-install.feature
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Feature: Install WP-CLI packages
Scenario: Install a package with 'wp-cli/wp-cli' as a dependency
Given a WP install

When I run `wp package install sinebridge/wp-cli-about:v1.0.1`
When I run `wp package install wp-cli-test/test-command:v0.2.0`
Then STDOUT should contain:
"""
Success: Package installed
Expand All @@ -59,10 +59,10 @@ Feature: Install WP-CLI packages
requires wp-cli/wp-cli
"""

When I run `wp about`
When I run `wp test-command`
Then STDOUT should contain:
"""
Site Information
Version C.
"""

@require-php-5.6
Expand Down
2 changes: 1 addition & 1 deletion tests/test-composer-json.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,6 @@ public function test_get_composer_json_path_backup_decoded() {
}

private function mac_safe_path( $path ) {
return preg_replace( '|^/private/var/|', '/var/', $path );
return preg_replace( '#^/private/(var|tmp)/#i', '/$1/', $path );
}
}