-
-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into v4-phpunit-gte-10-s…
…upport
- Loading branch information
Showing
17 changed files
with
193 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -295,13 +295,15 @@ private function createEndToEndSuite(ProjectInterface $project): void | |
* "modules.config.WPDb.dump" setting in the suite configuration file. The database will be dropped after each test | ||
* and re-created from the dump file(s). | ||
* | ||
* You can modify and create new dump files using the `vendor/bin/codecept wp:cli EndToEnd <wp-cli command>` command | ||
* to run WP-CLI commands on the WordPress site and database used by the EndToEnd suite. | ||
* You can modify and create new dump files using WP-CLI or by operating directly on the WordPress site and database, | ||
* use the `vendor/bin/codecept dev:info` command to know the URL to the WordPress site. | ||
* Note that WP-CLI will not natively handle SQLite databases, so you will need to use the `wp:db:import` and | ||
* `wp:db:export` commands to import and export the database. | ||
* E.g.: | ||
* `vendor/bin/codecept wp:cli EndToEnd db import tests/Support/Data/dump.sql` to load dump file. | ||
* `vendor/bin/codecept wp:cli EndToEnd plugin activate woocommerce` to activate the WooCommerce plugin. | ||
* `vendor/bin/codecept wp:cli EndToEnd user create alice [email protected] --role=administrator` to create a new user. | ||
* `vendor/bin/codecept wp:cli EndToEnd db export tests/Support/Data/dump.sql` to update the dump file. | ||
* `vendor/bin/codecept wp:db:import tests/_wordpress tests/Support/Data/dump.sql` to load dump file. | ||
* `wp --path=tests/_wordpress plugin activate woocommerce` to activate the WooCommerce plugin. | ||
* `wp --path=tests/_wordpress user create alice [email protected] --role=administrator` to create a new user. | ||
* `vendor/bin/codecept wp:db:export tests/_wordpress tests/Support/Data/dump.sql` to update the dump file. | ||
*/ | ||
EOF; | ||
$bootstrapPathname = $this->workDir . '/tests/EndToEnd/_bootstrap.php'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -169,13 +169,15 @@ class EndToEndTester extends \Codeception\Actor | |
* "modules.config.WPDb.dump" setting in the suite configuration file. The database will be dropped after each test | ||
* and re-created from the dump file(s). | ||
* | ||
* You can modify and create new dump files using the `vendor/bin/codecept wp:cli EndToEnd <wp-cli command>` command | ||
* to run WP-CLI commands on the WordPress site and database used by the EndToEnd suite. | ||
* You can modify and create new dump files using WP-CLI or by operating directly on the WordPress site and database, | ||
* use the `vendor/bin/codecept dev:info` command to know the URL to the WordPress site. | ||
* Note that WP-CLI will not natively handle SQLite databases, so you will need to use the `wp:db:import` and | ||
* `wp:db:export` commands to import and export the database. | ||
* E.g.: | ||
* `vendor/bin/codecept wp:cli EndToEnd db import tests/Support/Data/dump.sql` to load dump file. | ||
* `vendor/bin/codecept wp:cli EndToEnd plugin activate woocommerce` to activate the WooCommerce plugin. | ||
* `vendor/bin/codecept wp:cli EndToEnd user create alice [email protected] --role=administrator` to create a new user. | ||
* `vendor/bin/codecept wp:cli EndToEnd db export tests/Support/Data/dump.sql` to update the dump file. | ||
* `vendor/bin/codecept wp:db:import tests/_wordpress tests/Support/Data/dump.sql` to load dump file. | ||
* `wp --path=tests/_wordpress plugin activate woocommerce` to activate the WooCommerce plugin. | ||
* `wp --path=tests/_wordpress user create alice [email protected] --role=administrator` to create a new user. | ||
* `vendor/bin/codecept wp:db:export tests/_wordpress tests/Support/Data/dump.sql` to update the dump file. | ||
*/ | ||
<<< /EndToEnd/_bootstrap.php <<< | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -214,13 +214,15 @@ class EndToEndTester extends \Codeception\Actor | |
* "modules.config.WPDb.dump" setting in the suite configuration file. The database will be dropped after each test | ||
* and re-created from the dump file(s). | ||
* | ||
* You can modify and create new dump files using the `vendor/bin/codecept wp:cli EndToEnd <wp-cli command>` command | ||
* to run WP-CLI commands on the WordPress site and database used by the EndToEnd suite. | ||
* You can modify and create new dump files using WP-CLI or by operating directly on the WordPress site and database, | ||
* use the `vendor/bin/codecept dev:info` command to know the URL to the WordPress site. | ||
* Note that WP-CLI will not natively handle SQLite databases, so you will need to use the `wp:db:import` and | ||
* `wp:db:export` commands to import and export the database. | ||
* E.g.: | ||
* `vendor/bin/codecept wp:cli EndToEnd db import tests/Support/Data/dump.sql` to load dump file. | ||
* `vendor/bin/codecept wp:cli EndToEnd plugin activate woocommerce` to activate the WooCommerce plugin. | ||
* `vendor/bin/codecept wp:cli EndToEnd user create alice [email protected] --role=administrator` to create a new user. | ||
* `vendor/bin/codecept wp:cli EndToEnd db export tests/Support/Data/dump.sql` to update the dump file. | ||
* `vendor/bin/codecept wp:db:import tests/_wordpress tests/Support/Data/dump.sql` to load dump file. | ||
* `wp --path=tests/_wordpress plugin activate woocommerce` to activate the WooCommerce plugin. | ||
* `wp --path=tests/_wordpress user create alice [email protected] --role=administrator` to create a new user. | ||
* `vendor/bin/codecept wp:db:export tests/_wordpress tests/Support/Data/dump.sql` to update the dump file. | ||
*/ | ||
<<< /EndToEnd/_bootstrap.php <<< | ||
|
||
|
@@ -267,8 +269,8 @@ TEST_TABLE_PREFIX=test_ | |
WORDPRESS_TABLE_PREFIX=wp_ | ||
|
||
# The URL and domain of the WordPress site used in end-to-end tests. | ||
WORDPRESS_URL=http://localhost:24423 | ||
WORDPRESS_DOMAIN=localhost:24423 | ||
WORDPRESS_URL=http://localhost:28388 | ||
WORDPRESS_DOMAIN=localhost:28388 | ||
WORDPRESS_ADMIN_PATH=/wp/wp-admin | ||
|
||
# The username and password of the administrator user of the WordPress site used in end-to-end tests. | ||
|
@@ -277,10 +279,10 @@ WORDPRESS_ADMIN_PASSWORD=password | |
|
||
# The host and port of the ChromeDriver server that will be used in end-to-end tests. | ||
CHROMEDRIVER_HOST=localhost | ||
CHROMEDRIVER_PORT=17558 | ||
CHROMEDRIVER_PORT=9649 | ||
|
||
# The port on which the PHP built-in server will serve the WordPress installation. | ||
BUILTIN_SERVER_PORT=24423 | ||
BUILTIN_SERVER_PORT=28388 | ||
|
||
# The path to the directory that should be served on localhost, the one containing the wp-config.php file. | ||
WORDPRESS_DOCROOT=web | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -222,13 +222,15 @@ class EndToEndTester extends \Codeception\Actor | |
* "modules.config.WPDb.dump" setting in the suite configuration file. The database will be dropped after each test | ||
* and re-created from the dump file(s). | ||
* | ||
* You can modify and create new dump files using the `vendor/bin/codecept wp:cli EndToEnd <wp-cli command>` command | ||
* to run WP-CLI commands on the WordPress site and database used by the EndToEnd suite. | ||
* You can modify and create new dump files using WP-CLI or by operating directly on the WordPress site and database, | ||
* use the `vendor/bin/codecept dev:info` command to know the URL to the WordPress site. | ||
* Note that WP-CLI will not natively handle SQLite databases, so you will need to use the `wp:db:import` and | ||
* `wp:db:export` commands to import and export the database. | ||
* E.g.: | ||
* `vendor/bin/codecept wp:cli EndToEnd db import tests/Support/Data/dump.sql` to load dump file. | ||
* `vendor/bin/codecept wp:cli EndToEnd plugin activate woocommerce` to activate the WooCommerce plugin. | ||
* `vendor/bin/codecept wp:cli EndToEnd user create alice [email protected] --role=administrator` to create a new user. | ||
* `vendor/bin/codecept wp:cli EndToEnd db export tests/Support/Data/dump.sql` to update the dump file. | ||
* `vendor/bin/codecept wp:db:import tests/_wordpress tests/Support/Data/dump.sql` to load dump file. | ||
* `wp --path=tests/_wordpress plugin activate woocommerce` to activate the WooCommerce plugin. | ||
* `wp --path=tests/_wordpress user create alice [email protected] --role=administrator` to create a new user. | ||
* `vendor/bin/codecept wp:db:export tests/_wordpress tests/Support/Data/dump.sql` to update the dump file. | ||
*/ | ||
<<< /tests/EndToEnd/_bootstrap.php <<< | ||
|
||
|
@@ -270,8 +272,8 @@ TEST_TABLE_PREFIX=test_ | |
WORDPRESS_TABLE_PREFIX=wp_ | ||
|
||
# The URL and domain of the WordPress site used in end-to-end tests. | ||
WORDPRESS_URL=http://localhost:32347 | ||
WORDPRESS_DOMAIN=localhost:32347 | ||
WORDPRESS_URL=http://localhost:8970 | ||
WORDPRESS_DOMAIN=localhost:8970 | ||
WORDPRESS_ADMIN_PATH=/wp-admin | ||
|
||
# The username and password of the administrator user of the WordPress site used in end-to-end tests. | ||
|
@@ -280,10 +282,10 @@ WORDPRESS_ADMIN_PASSWORD=password | |
|
||
# The host and port of the ChromeDriver server that will be used in end-to-end tests. | ||
CHROMEDRIVER_HOST=localhost | ||
CHROMEDRIVER_PORT=59028 | ||
CHROMEDRIVER_PORT=43956 | ||
|
||
# The port on which the PHP built-in server will serve the WordPress installation. | ||
BUILTIN_SERVER_PORT=32347 | ||
BUILTIN_SERVER_PORT=8970 | ||
|
||
<<< /tests/.env <<< | ||
|
||
|
@@ -325,7 +327,6 @@ extensions: | |
DB_FILE: db.sqlite | ||
lucatume\WPBrowser\Extension\Symlinker: | ||
wpRootFolder: '%WORDPRESS_ROOT_DIR%' | ||
plugins: { } | ||
themes: | ||
- . | ||
commands: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -214,13 +214,15 @@ class EndToEndTester extends \Codeception\Actor | |
* "modules.config.WPDb.dump" setting in the suite configuration file. The database will be dropped after each test | ||
* and re-created from the dump file(s). | ||
* | ||
* You can modify and create new dump files using the `vendor/bin/codecept wp:cli EndToEnd <wp-cli command>` command | ||
* to run WP-CLI commands on the WordPress site and database used by the EndToEnd suite. | ||
* You can modify and create new dump files using WP-CLI or by operating directly on the WordPress site and database, | ||
* use the `vendor/bin/codecept dev:info` command to know the URL to the WordPress site. | ||
* Note that WP-CLI will not natively handle SQLite databases, so you will need to use the `wp:db:import` and | ||
* `wp:db:export` commands to import and export the database. | ||
* E.g.: | ||
* `vendor/bin/codecept wp:cli EndToEnd db import tests/Support/Data/dump.sql` to load dump file. | ||
* `vendor/bin/codecept wp:cli EndToEnd plugin activate woocommerce` to activate the WooCommerce plugin. | ||
* `vendor/bin/codecept wp:cli EndToEnd user create alice [email protected] --role=administrator` to create a new user. | ||
* `vendor/bin/codecept wp:cli EndToEnd db export tests/Support/Data/dump.sql` to update the dump file. | ||
* `vendor/bin/codecept wp:db:import tests/_wordpress tests/Support/Data/dump.sql` to load dump file. | ||
* `wp --path=tests/_wordpress plugin activate woocommerce` to activate the WooCommerce plugin. | ||
* `wp --path=tests/_wordpress user create alice [email protected] --role=administrator` to create a new user. | ||
* `vendor/bin/codecept wp:db:export tests/_wordpress tests/Support/Data/dump.sql` to update the dump file. | ||
*/ | ||
<<< /EndToEnd/_bootstrap.php <<< | ||
|
||
|
@@ -267,8 +269,8 @@ TEST_TABLE_PREFIX=test_ | |
WORDPRESS_TABLE_PREFIX=wp_ | ||
|
||
# The URL and domain of the WordPress site used in end-to-end tests. | ||
WORDPRESS_URL=http://localhost:9035 | ||
WORDPRESS_DOMAIN=localhost:9035 | ||
WORDPRESS_URL=http://localhost:14644 | ||
WORDPRESS_DOMAIN=localhost:14644 | ||
WORDPRESS_ADMIN_PATH=/wp-admin | ||
|
||
# The username and password of the administrator user of the WordPress site used in end-to-end tests. | ||
|
@@ -277,10 +279,10 @@ WORDPRESS_ADMIN_PASSWORD=password | |
|
||
# The host and port of the ChromeDriver server that will be used in end-to-end tests. | ||
CHROMEDRIVER_HOST=localhost | ||
CHROMEDRIVER_PORT=21043 | ||
CHROMEDRIVER_PORT=17240 | ||
|
||
# The port on which the PHP built-in server will serve the WordPress installation. | ||
BUILTIN_SERVER_PORT=9035 | ||
BUILTIN_SERVER_PORT=14644 | ||
|
||
<<< /.env <<< | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -209,13 +209,15 @@ class EndToEndTester extends \Codeception\Actor | |
* "modules.config.WPDb.dump" setting in the suite configuration file. The database will be dropped after each test | ||
* and re-created from the dump file(s). | ||
* | ||
* You can modify and create new dump files using the `vendor/bin/codecept wp:cli EndToEnd <wp-cli command>` command | ||
* to run WP-CLI commands on the WordPress site and database used by the EndToEnd suite. | ||
* You can modify and create new dump files using WP-CLI or by operating directly on the WordPress site and database, | ||
* use the `vendor/bin/codecept dev:info` command to know the URL to the WordPress site. | ||
* Note that WP-CLI will not natively handle SQLite databases, so you will need to use the `wp:db:import` and | ||
* `wp:db:export` commands to import and export the database. | ||
* E.g.: | ||
* `vendor/bin/codecept wp:cli EndToEnd db import tests/Support/Data/dump.sql` to load dump file. | ||
* `vendor/bin/codecept wp:cli EndToEnd plugin activate woocommerce` to activate the WooCommerce plugin. | ||
* `vendor/bin/codecept wp:cli EndToEnd user create alice [email protected] --role=administrator` to create a new user. | ||
* `vendor/bin/codecept wp:cli EndToEnd db export tests/Support/Data/dump.sql` to update the dump file. | ||
* `vendor/bin/codecept wp:db:import tests/_wordpress tests/Support/Data/dump.sql` to load dump file. | ||
* `wp --path=tests/_wordpress plugin activate woocommerce` to activate the WooCommerce plugin. | ||
* `wp --path=tests/_wordpress user create alice [email protected] --role=administrator` to create a new user. | ||
* `vendor/bin/codecept wp:db:export tests/_wordpress tests/Support/Data/dump.sql` to update the dump file. | ||
*/ | ||
<<< /tests/EndToEnd/_bootstrap.php <<< | ||
|
||
|
@@ -265,8 +267,8 @@ TEST_TABLE_PREFIX=test_ | |
WORDPRESS_TABLE_PREFIX=wp_ | ||
|
||
# The URL and domain of the WordPress site used in end-to-end tests. | ||
WORDPRESS_URL=http://localhost:48989 | ||
WORDPRESS_DOMAIN=localhost:48989 | ||
WORDPRESS_URL=http://localhost:27090 | ||
WORDPRESS_DOMAIN=localhost:27090 | ||
WORDPRESS_ADMIN_PATH=/wp-admin | ||
|
||
# The username and password of the administrator user of the WordPress site used in end-to-end tests. | ||
|
@@ -275,10 +277,10 @@ WORDPRESS_ADMIN_PASSWORD=password | |
|
||
# The host and port of the ChromeDriver server that will be used in end-to-end tests. | ||
CHROMEDRIVER_HOST=localhost | ||
CHROMEDRIVER_PORT=10540 | ||
CHROMEDRIVER_PORT=55678 | ||
|
||
# The port on which the PHP built-in server will serve the WordPress installation. | ||
BUILTIN_SERVER_PORT=48989 | ||
BUILTIN_SERVER_PORT=27090 | ||
|
||
<<< /tests/.env <<< | ||
|
||
|
@@ -322,7 +324,6 @@ extensions: | |
wpRootFolder: '%WORDPRESS_ROOT_DIR%' | ||
plugins: | ||
- . | ||
themes: { } | ||
commands: | ||
- lucatume\WPBrowser\Command\RunOriginal | ||
- lucatume\WPBrowser\Command\RunAll | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -174,13 +174,15 @@ class EndToEndTester extends \Codeception\Actor | |
* "modules.config.WPDb.dump" setting in the suite configuration file. The database will be dropped after each test | ||
* and re-created from the dump file(s). | ||
* | ||
* You can modify and create new dump files using the `vendor/bin/codecept wp:cli EndToEnd <wp-cli command>` command | ||
* to run WP-CLI commands on the WordPress site and database used by the EndToEnd suite. | ||
* You can modify and create new dump files using WP-CLI or by operating directly on the WordPress site and database, | ||
* use the `vendor/bin/codecept dev:info` command to know the URL to the WordPress site. | ||
* Note that WP-CLI will not natively handle SQLite databases, so you will need to use the `wp:db:import` and | ||
* `wp:db:export` commands to import and export the database. | ||
* E.g.: | ||
* `vendor/bin/codecept wp:cli EndToEnd db import tests/Support/Data/dump.sql` to load dump file. | ||
* `vendor/bin/codecept wp:cli EndToEnd plugin activate woocommerce` to activate the WooCommerce plugin. | ||
* `vendor/bin/codecept wp:cli EndToEnd user create alice [email protected] --role=administrator` to create a new user. | ||
* `vendor/bin/codecept wp:cli EndToEnd db export tests/Support/Data/dump.sql` to update the dump file. | ||
* `vendor/bin/codecept wp:db:import tests/_wordpress tests/Support/Data/dump.sql` to load dump file. | ||
* `wp --path=tests/_wordpress plugin activate woocommerce` to activate the WooCommerce plugin. | ||
* `wp --path=tests/_wordpress user create alice [email protected] --role=administrator` to create a new user. | ||
* `vendor/bin/codecept wp:db:export tests/_wordpress tests/Support/Data/dump.sql` to update the dump file. | ||
*/ | ||
<<< /tests/EndToEnd/_bootstrap.php <<< | ||
|
||
|
Oops, something went wrong.