You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It can operate with different entities: the web page can be loaded with the PhpBrowser module, the database assertion uses the Db module, and file state can be checked with the Filesystem module.
28
28
29
29
Modules are attached to Actor classes in the suite config.
30
-
For example, in `tests/functional.suite.yml` we should see:
30
+
For example, in `tests/acceptance.suite.yml` we should see:
31
31
32
32
{% highlight yaml %}
33
33
@@ -41,7 +41,7 @@ modules:
41
41
42
42
{% endhighlight %}
43
43
44
-
The FunctionalTester class has its methods defined in modules. But let's see what's inside `AcceptanceTester` class, which is located inside `tests/_support` directory:
44
+
The AcceptanceTester class has its methods defined in modules. But let's see what's inside `AcceptanceTester` class, which is located inside `tests/_support` directory:
45
45
46
46
{% highlight php %}
47
47
@@ -345,7 +345,7 @@ class UserCest
345
345
346
346
The dependency injection container can construct any object that require any known class type. For instance, `Page\Login` required `AcceptanceTester`, and so it was injected into `Page\Login` constructor, and PageObject was created and passed into method arguments. You should specify explicitly the types of requried objects for Codeception to know what objects should be created for a test. Dependency Injection will be described in the next chapter.
347
347
348
-
## Modules and Helpers
348
+
## Helpers
349
349
350
350
In the examples above we only grouped actions into one. What happens when we need to create a custom action?
351
351
In this case it's a good idea to define missing actions or assertion commands in custom modules, which are called Helpers. They can be found in the `tests/_support/Helper` directory.
@@ -479,10 +479,11 @@ function seeNumResults($num)
0 commit comments