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

Update scaffolded tests and README to latest #23

Merged
merged 1 commit into from
Dec 8, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ branches:

cache:
directories:
- vendor
- $HOME/.composer/cache

env:
Expand All @@ -25,7 +24,7 @@ env:
matrix:
include:
- php: 7.2
env: WP_VERSION=nightly
env: WP_VERSION=latest
- php: 7.1
env: WP_VERSION=latest
- php: 7.0
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
wp-cli/cache-command
====================

Manage object and transient caches.
Manages object and transient caches.

[![Build Status](https://travis-ci.org/wp-cli/cache-command.svg?branch=master)](https://travis-ci.org/wp-cli/cache-command)

Expand Down Expand Up @@ -515,7 +515,7 @@ Once you've decided to commit the time to seeing your pull request through, [ple

## Support

Github issues aren't for general support questions, but there are other venues you can try: http://wp-cli.org/#support
Github issues aren't for general support questions, but there are other venues you can try: https://wp-cli.org/#support


*This README.md is generated dynamically from the project's codebase using `wp scaffold package-readme` ([doc](https://github.com/wp-cli/scaffold-package-command#wp-scaffold-package-readme)). To suggest changes, please submit a pull request against the corresponding part of the codebase.*
8 changes: 4 additions & 4 deletions features/bootstrap/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,17 @@
class FeatureContext extends BehatContext implements ClosuredContextInterface {

/**
* The current working directory for scenarios that have a "Given a WP install" or "Given an empty directory" step. Variable RUN_DIR. Lives until the end of the scenario.
* The current working directory for scenarios that have a "Given a WP installation" or "Given an empty directory" step. Variable RUN_DIR. Lives until the end of the scenario.
*/
private static $run_dir;

/**
* Where WordPress core is downloaded to for caching, and which is copied to RUN_DIR during a "Given a WP install" step. Lives until manually deleted.
* Where WordPress core is downloaded to for caching, and which is copied to RUN_DIR during a "Given a WP installation" step. Lives until manually deleted.
*/
private static $cache_dir;

/**
* The directory that holds the install cache, and which is copied to RUN_DIR during a "Given a WP install" step. Recreated on each suite run.
* The directory that holds the install cache, and which is copied to RUN_DIR during a "Given a WP installation" step. Recreated on each suite run.
*/
private static $install_cache_dir;

Expand All @@ -72,7 +72,7 @@ class FeatureContext extends BehatContext implements ClosuredContextInterface {
private static $composer_local_repository;

/**
* The test database settings. All but `dbname` can be set via environment variables. The database is dropped at the start of each scenario and created on a "Given a WP install" step.
* The test database settings. All but `dbname` can be set via environment variables. The database is dropped at the start of each scenario and created on a "Given a WP installation" step.
*/
private static $db_settings = array(
'dbname' => 'wp_cli_test',
Expand Down
14 changes: 7 additions & 7 deletions features/steps/given.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,31 +69,31 @@ function ( $world ) {
}
);

$steps->Given( '/^a WP install$/',
$steps->Given( '/^a WP (install|installation)$/',
function ( $world ) {
$world->install_wp();
}
);

$steps->Given( "/^a WP install in '([^\s]+)'$/",
function ( $world, $subdir ) {
$steps->Given( "/^a WP (install|installation) in '([^\s]+)'$/",
function ( $world, $_, $subdir ) {
$world->install_wp( $subdir );
}
);

$steps->Given( '/^a WP install with Composer$/',
$steps->Given( '/^a WP (install|installation) with Composer$/',
function ( $world ) {
$world->install_wp_with_composer();
}
);

$steps->Given( "/^a WP install with Composer and a custom vendor directory '([^\s]+)'$/",
function ( $world, $vendor_directory ) {
$steps->Given( "/^a WP (install|installation) with Composer and a custom vendor directory '([^\s]+)'$/",
function ( $world, $_, $vendor_directory ) {
$world->install_wp_with_composer( $vendor_directory );
}
);

$steps->Given( '/^a WP multisite (subdirectory|subdomain)?\s?install$/',
$steps->Given( '/^a WP multisite (subdirectory|subdomain)?\s?(install|installation)$/',
function ( $world, $type = 'subdirectory' ) {
$world->install_wp();
$subdomains = ! empty( $type ) && 'subdomain' === $type ? 1 : 0;
Expand Down