2024-08-13
This commit is contained in:
parent
74779c64c1
commit
6b27b6d5e6
30 changed files with 6781 additions and 2 deletions
21
web/vendor/htmlburger/carbon-fields/tests/README.md
vendored
Normal file
21
web/vendor/htmlburger/carbon-fields/tests/README.md
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# Carbon Fields Unit Tests
|
||||
|
||||
## Initial Setup
|
||||
|
||||
Install WordPress and the WP Unit Test lib using the `install.sh` script. Change to the plugin root directory and type:
|
||||
|
||||
$ tests/bin/install.sh <db-name> <db-user> <db-password> [db-host] [wp-version]
|
||||
|
||||
Sample usage:
|
||||
|
||||
$ tests/bin/install.sh carbon_fields_tests root root localhost 4.7
|
||||
|
||||
**Important**: Make sure that the `<db-name>` database has been created. Note that all data will be removed during testing.
|
||||
|
||||
## Running Tests
|
||||
|
||||
Simply change to the plugin root directory and type:
|
||||
|
||||
$ ./vendor/bin/phpunit
|
||||
|
||||
Refer to the [phpunit command line test runner reference](https://phpunit.de/manual/current/en/phpunit-book.html#textui) for more information and command line options.
|
||||
Loading…
Add table
Add a link
Reference in a new issue