diff --git a/docs/07-AdvancedUsage.md b/docs/07-AdvancedUsage.md index e6861a05a..5f44ac8eb 100644 --- a/docs/07-AdvancedUsage.md +++ b/docs/07-AdvancedUsage.md @@ -467,7 +467,6 @@ For example, you might need some tests to be executed in Firefox only, and some The desired environments can be specified with the `@env` annotation for tests in Test and Cest formats: {% highlight php %} - current('capabilities'); {% endhighlight %} -You can access `\Codeception\Scenario` in the Cept and Cest formats. -In Cept, the `$scenario` variable is available by default, -while in Cest you should retrieve it through dependency injection: +You can inject `\Codeception\Scenario` like this: {% highlight php %} - getScenario()`. @@ -628,7 +612,7 @@ You can pass the `-c` option to any Codeception command (except `bootstrap`), to $ php vendor/bin/codecept run -c ~/projects/ecommerce/ $ php vendor/bin/codecept run -c ~/projects/drupal/ -$ php vendor/bin/codecept generate:cept acceptance CreateArticle -c ~/projects/drupal/ +$ php vendor/bin/codecept generate:cest acceptance CreateArticle -c ~/projects/drupal/ {% endhighlight %} @@ -678,18 +662,6 @@ public function testAdminUser() {% endhighlight %} -For Cept files, use pseudo-annotations in comments: - -{% highlight php %} - -wantToTest('admin area'); - -{% endhighlight %} - For `.feature`-files (Gherkin) use tags: {% highlight gherkin %} @@ -750,7 +722,7 @@ This will load all found `p*` files in `tests/_data` as groups. Group names will ## Formats -In addition to the standard test formats (Cept, Cest, Unit, Gherkin) you can implement your own format classes to customise your test execution. +In addition to the standard test formats (Cest, Unit, Gherkin) you can implement your own format classes to customise your test execution. Specify these in your suite configuration: {% highlight yaml %} pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy