WordPress Help
Official documentation, learning resources, and contributor guides collected from WordPress.org.
-
Then /^STDOUT should be JSON containing:$/
Expect valid JSONJSON JSON, or JavaScript Object Notation, is a minimal, readable format for structuring data. It is used primarily to transmit data between a server and web application, as an alternative to XML. output in STDOUT. Usage Scenario: My example scenario When I run `wp post meta get 1 meta-key –format=json` Then STDOUT should…
-
Then /^STDOUT should be CSV containing:$/
Expect STDOUT to be CSV containing certain values. Usage Scenario: My example scenario When I run `wp term list post_tag –fields=name,slug –format=csv` Then STDOUT should be CSV containing: | name | slug | | Test term | test | Behat steps documentation is generated from the WP-CLIWP-CLI WP-CLI is the Command Line Interface for WordPress,…
-
Then /^the (.+) (file|directory) should( strictly)? (exist|not exist|be:|contain:|not contain:)$/
Expect a certain file or directory to (not) exist or (not) contain certain contents. Usage Scenario: My example scenario When I run `wp core download` Then the wp-settings.php file should exist And the wp-content directory should exist And the {RUN_DIR} directory should contain: “”” index.php license.txt “”” And the wp-config.php file should contain: “”” That’s…
-
Then /^the contents of the (.+) file should( not)? match (((/.+/)|(#.+#))([a-z]+)?)$/
Match file contents against a regex. Usage Scenario: My example scenario When I run `wp scaffold plugin hello-world` Then the contents of the wp-content/plugins/hello-world/languages/hello-world.pot file should match /X-Generator:\s/ Behat steps documentation is generated from the WP-CLIWP-CLI WP-CLI is the Command Line Interface for WordPress, used to do administrative and development tasks in a programmatic way.…
-
Then /^(STDOUT|STDERR) should( strictly)? (be|contain|not contain):$/
Check the contents of STDOUT or STDERR. Usage Scenario: My example scenario Given an empty directory When I run `wp core is-installed` Then STDOUT should be empty Scenario: My other scenario Given a WP install When I run `wp plugin install akismet` Then STDOUT should contain: “”” Plugin installed successfully. “”” And STDERR should be…
-
Then /^(STDOUT|STDERR) should( not)? match (((/.+/)|(#.+#))([a-z]+)?)$/
Match STDOUT or STDERR against a regex. Usage Scenario: My example scenario When I run `wp dist-archive wp-content/plugins/hello-world` Then STDOUT should match /^Success: Created hello-world.0.1.0.zip \(Size: \d+(?:\.\d*)? [a-zA-Z]{1,3}\)$/ Behat steps documentation is generated from the WP-CLIWP-CLI WP-CLI is the Command Line Interface for WordPress, used to do administrative and development tasks in a programmatic way.…
-
Then /^(STDOUT|STDERR) should not be empty$/
Expect STDOUT or STDERR not to be empty. Usage Scenario: My example scenario When I run `wp user create examplejane [email protected]` Then STDOUT should not be empty Behat steps documentation is generated from the WP-CLIWP-CLI WP-CLI is the Command Line Interface for WordPress, used to do administrative and development tasks in a programmatic way. The…
-
Then /^(STDOUT|STDERR) should not be a number$/
Expect STDOUT or STDERR to not be a numeric value. Usage Scenario: My example scenario Given a WP installation When I run `wp post list –format=json` Then STDOUT should not be a number Behat steps documentation is generated from the WP-CLIWP-CLI WP-CLI is the Command Line Interface for WordPress, used to do administrative and development…
-
При пустом кэше
Очищает каталог кэша WP-CLIWP-CLI WP-CLI — это интерфейс командной строки для WordPress, используемый для выполнения административных задач и задач разработки программным способом. Страница проекта: http://wp-cli.org/ https://make.wordpress.org/cli/. Использование Сценарий: мой пример сценария Дано пустой кэш … Документация по шагам Behat создаётся из кодовой базы WP-CLI при каждом выпуске. Чтобы предложить улучшения, отправьте pull request. Связанные материалы…
-
Dengan cache kosong
Clears the WP-CLIWP-CLI WP-CLI is the Command Line Interface for WordPress, used to do administrative and development tasks in a programmatic way. The project page is http://wp-cli.org/ https://make.wordpress.org/cli/ cache directory. Usage Scenario: My example scenario Given an empty cache … Behat steps documentation is generated from the WP-CLI codebase on every release. To suggest improvements,…