WordPress Help
Official documentation, learning resources, and contributor guides collected from WordPress.org.
-
When /^I (run|try) `([^`]+)` from ‘([^s]+)’$/
Run or try a given command in a subdirectory. Usage run expects an exit code 0, whereas try allows for non-zero exit codes. Scenario: My example scenario When I run `wp core is-installed` Then STDOUT should be empty When I run `wp core is-installed` from ‘foo/wp-content’ Then STDOUT should be empty Behat steps documentation is…
-
When /^I launch in the background `([^`]+)`$/
Launch a given command in the background. Usage Scenario: My example scenario Given a WP install And I launch in the background `wp server –host=localhost –port=8181` … 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 /^the return code should( not)? be (d+)$/
Expect a specific exit code of the previous command. Usage Scenario: My example scenario Given a WP installation When I try `wp plugin install` Then the return code should be 1 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…
-
Тогда /^STDOUT должен содержать CSV:$/
Ожидать, что STDOUT будет содержать CSV с определёнными значениями. Использование Сценарий: Мой пример сценария Когда я выполняю `wp term list post_tag –fields=name,slug –format=csv` Тогда STDOUT должен содержать CSV: | name | slug | | Test term | test | Документация по шагам Behat генерируется из кодовой базы WP-CLIWP-CLI WP-CLI — это интерфейс командной строки для…
-
Then /^STDOUT harus berupa CSV yang berisi:$/
Harapkan STDOUT berupa CSV yang berisi nilai tertentu. Penggunaan 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 | Dokumentasi langkah Behat dibuat dari basis kode WP-CLIWP-CLI WP-CLI adalah Antarmuka Baris Perintah untuk WordPress, yang…
-
Then /^STDOUT में CSV होना चाहिए जिसमें शामिल हो:$/
STDOUT में कुछ निश्चित मानों वाली CSV होने की अपेक्षा करें। उपयोग 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 चरणों का दस्तावेज़ीकरण प्रत्येक रिलीज़ पर WP-CLIWP-CLI WP-CLI, WordPress का कमांड लाइन…
-
ثم /^STDOUT يجب أن يكون بتنسيق CSV ويحتوي على:$/
توقّع أن يكون STDOUT بتنسيق CSV ويحتوي على قيم معيّنة. الاستخدام السيناريو: سيناريو المثال الخاص بي عندما أشغّل `wp term list post_tag –fields=name,slug –format=csv` عندئذٍ يجب أن يكون STDOUT بتنسيق CSV ويحتوي على: | name | slug | | Test term | test | يتم إنشاء توثيق خطوات Behat من قاعدة شيفرة WP-CLIWP-CLI WP-CLI هي…
-
Then /^STDOUT は以下を含む CSV であるべきです:$/
STDOUTに特定の値を含むCSVが出力されることを確認します。 使用方法 シナリオ: 私のサンプルシナリオ When `wp term list post_tag –fields=name,slug –format=csv` を実行する Then STDOUTは次を含むCSVであるべき: | name | slug | | Test term | test | Behatステップのドキュメントは、リリースごとにWP-CLIWP-CLI WP-CLIは、プログラムによる管理および開発タスクの実行に使用される、WordPressのコマンドラインインターフェースです。プロジェクトページはhttp://wp-cli.org/ https://make.wordpress.org/cli/です。コードベースから生成されます。改善案がある場合は、プルリクエストを送信してください。 関連項目 Then /^the return code should( not)? be (\d+)$/ – 直前のコマンドの特定の終了コードを確認します。 Then /^(STDOUT|STDERR) should( strictly)? (be|contain|not contain):$/ – STDOUTまたはSTDERRの内容を確認します。 Then /^(STDOUT|STDERR) should be a number$/ – STDOUTまたはSTDERRが数値であることを確認します。…
-
Then /^STDOUT 应包含 CSV:$/
期望 STDOUT 为包含特定值的 CSV。 用法 场景:我的示例场景 当我运行 `wp term list post_tag –fields=name,slug –format=csv` 那么 STDOUT 应为包含以下内容的 CSV: | name | slug | | Test term | test | Behat 步骤文档会在每次发布时根据 WP-CLIWP-CLI WP-CLI 是 WordPress 的命令行界面,用于以编程方式执行管理和开发任务。项目页面:http://wp-cli.org/ https://make.wordpress.org/cli/ 代码库生成。如有改进建议,请提交拉取请求。 相关内容 Then /^the return code should( not)? be (\d+)$/ – 期望上一个命令返回特定的退出代码。 Then /^(STDOUT|STDERR) should( strictly)? (be|contain|not contain):$/ –…
-
Então /^STDOUT deve ser CSV contendo:$/
Espere que STDOUT seja um CSV contendo determinados valores. Uso Cenário: Meu cenário de exemplo Quando eu executar `wp term list post_tag –fields=name,slug –format=csv` Então STDOUT deve ser um CSV contendo: | name | slug | | Test term | test | A documentação das etapas do Behat é gerada a partir da base de…