File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -370,6 +370,16 @@ __not documented__
370370__ not documented__
371371
372372
373+ #### assertStringEndsNotWith
374+
375+ * ` Available since ` 1.1.0 of module-asserts
376+
377+
378+ #### assertStringEndsWith
379+
380+ * ` Available since ` 1.1.0 of module-asserts
381+
382+
373383#### assertStringNotContainsString
374384__ not documented__
375385
Original file line number Diff line number Diff line change @@ -39,8 +39,24 @@ modules:
3939
4040This will use static method of ` MyDb::createEntityManager() ` to establish the Entity Manager.
4141
42- By default, the module will wrap everything into a transaction for each test and roll it back afterwards. By doing this
43- tests will run much faster and will be isolated from each other.
42+ By default, the module will wrap everything into a transaction for each test and roll it back afterwards
43+ (this is controlled by the ` cleanup ` setting).
44+ By doing this, tests will run much faster and will be isolated from each other.
45+
46+ To use the Doctrine2 Module in acceptance tests, set up your ` acceptance.suite.yml ` like this:
47+
48+ {% highlight yaml %}
49+
50+ modules:
51+ enabled:
52+ - Symfony:
53+ part: SERVICES
54+ - Doctrine2:
55+ depends: Symfony
56+ ``
57+
58+ You cannot use ` cleanup: true ` in an acceptance test, since Codeception and your app (i.e. browser) are using two
59+ different connections to the database, so Codeception can't wrap changes made by the app into a transaction.
4460
4561### Status
4662
@@ -60,16 +76,15 @@ Every method that expects some parameters to be checked against values in the da
6076` dontSee...() ` , ` grab...() ` ) can accept instance of \Doctrine\Common\Collections\Criteria for more
6177flexibility, e.g.:
6278
63- {% highlight php %}
6479
80+ {% endhighlight %} php
6581$I->seeInRepository('User', [
6682 'name' => 'John',
6783 Criteria::create()->where(
6884 Criteria::expr()->endsWith('email', '@domain .com')
6985 ),
7086] );
71-
72- {% endhighlight %}
87+ ```
7388
7489If criteria is just a `->where(...)` construct, you can pass just expression without criteria wrapper:
7590
You can’t perform that action at this time.
0 commit comments