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
Copy file name to clipboardExpand all lines: _includes/extensions.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,9 @@ extensions:
47
47
#### Configuration
48
48
49
49
* `delete_successful` (default: true) - delete records for successfully passed tests (log only failed and errored)
50
-
* `module` (default: WebDriver) - which module for screenshots to use. Module should implement `Codeception\Lib\Interfaces\ScreenshotSaver` interaface. Currently only WebDriver or any its children can be used.
50
+
* `module` (default: WebDriver) - which module for screenshots to use.
51
+
Module should implement `Codeception\Lib\Interfaces\ScreenshotSaver` interface.
52
+
Currently only WebDriver or any its children can be used.
Copy file name to clipboardExpand all lines: changelog.markdown
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,30 @@ title: Codeception Changelog
7
7
8
8
# Changelog
9
9
10
+
#### 2.1.9
11
+
12
+
* PHPUnit 5.4 compatibility for creating mocks using `Codeception\Util\Stub` by <strong><ahref="https://github.com/davertmik">@davertmik</a></strong>. See <ahref="https://github.com/Codeception/Codeception/issues/3093">#3093</a> and <ahref="https://github.com/Codeception/Codeception/issues/3080">#3080</a>
13
+
* Updated dependencies to support Symfony 3.1
14
+
* Added `settings: backup_global` to config, to disable backup_global option of PHPUnit by <strong><ahref="https://github.com/mkeasling">@mkeasling</a></strong>. See <ahref="https://github.com/Codeception/Codeception/issues/3045">#3045</a>. Fixes <ahref="https://github.com/Codeception/Codeception/issues/3044">#3044</a>
15
+
* <strong>[PhpBrowser]</strong><strong>[Frameworks]</strong> `see` matches UTF-8 text case-insensitively by <strong><ahref="https://github.com/Naktibalda">@Naktibalda</a></strong>. Fixes <ahref="https://github.com/Codeception/Codeception/issues/3114">#3114</a>
16
+
* Fixed page object generation with namespaces by <strong><ahref="https://github.com/eugene">@eugene</a></strong>-manuilov and <strong><ahref="https://github.com/Naktibalda">@Naktibalda</a></strong>. See <ahref="https://github.com/Codeception/Codeception/issues/3126">#3126</a> Fixes <ahref="https://github.com/Codeception/Codeception/issues/3012">#3012</a>
17
+
*`--steps` will not disable code coverage. By <strong><ahref="https://github.com/Naktibalda">@Naktibalda</a></strong>. Fixes <ahref="https://github.com/Codeception/Codeception/issues/2620">#2620</a>
18
+
* Suppress console coverage report with `--quiet` by <strong><ahref="https://github.com/EspadaV8">@EspadaV8</a></strong>. See <ahref="https://github.com/Codeception/Codeception/issues/2370">#2370</a>
19
+
* Improved multibyte output in console by <strong><ahref="https://github.com/kt81">@kt81</a></strong>. See <ahref="https://github.com/Codeception/Codeception/issues/3130">#3130</a>
20
+
* <strong>[Lumen]</strong> Fixed: `initializeLumen()` method has been called twice on start by <strong><ahref="https://github.com/kt81">@kt81</a></strong>. See <ahref="https://github.com/Codeception/Codeception/issues/3124">#3124</a> <ahref="https://github.com/Codeception/Codeception/issues/2607">#2607</a>
21
+
* <strong>[Db]</strong> Allow INT Parameter SQL Binding by <strong><ahref="https://github.com/davidcochrum">@davidcochrum</a></strong> . Fixes <ahref="https://github.com/Codeception/Codeception/issues/3118">#3118</a>
22
+
* <strong>[Db]</strong> Support LIKE conditions in assertions.
23
+
* <strong>[Db]</strong> Improved regex for parsing comments by <strong><ahref="https://github.com/dima">@dima</a></strong>-stefantsov. See <ahref="https://github.com/Codeception/Codeception/issues/3138">#3138</a>
24
+
* <strong>[Dbh]</strong> Fix `seeInDatabase` and `dontSeeInDatabase` with empty criteria. Closes <ahref="https://github.com/Codeception/Codeception/issues/3116">#3116</a>
25
+
* <strong>[Symfony]</strong> Improve fail messages on seeInCurrentRoute and seeCurrentRouteIs
26
+
* <strong>[Symfony]</strong> Improve route comparison on seeInCurrentRoute and seeCurrentRouteIs
27
+
* <strong>[WebDriver]</strong> multi session testing with friends improved by <strong><ahref="https://github.com/eXorus">@eXorus</a></strong>. Webdriver sessions are finished correctly; `leave()` method added to Friend class. See <ahref="https://github.com/Codeception/Codeception/issues/3068">#3068</a>
28
+
* <strong>[PhpBrowser]</strong> added `handler` and `middleware` config options to customize Guzzle handlers and middleware
29
+
* Added full support of phpunit-bridge features.
30
+
* <strong>[Laravel]</strong> Fixed issue where non-existing services were called in _before and _after methods. See <ahref="https://github.com/Codeception/Codeception/issues/3028">#3028</a>.
31
+
* <strong>[WebDriver]</strong> fixed using `saveSessionSnapshot` with codecoverage. Closes <ahref="https://github.com/Codeception/Codeception/issues/2923">#2923</a>
32
+
* <strong>[ZF2]</strong> create new instance of Application for each request
33
+
10
34
#### 2.1.8
11
35
12
36
*`Util\Locator` added methods to create locators to match element at their position: `elementAt`, `firstElement`, `lastElement`
While testing, your actions may change the data on the site. Tests will fail if trying to create or update the same data twice. To avoid this problem, your database should be repopulated for each test. Codeception provides a `Db` module for that purpose. It will load a database dump after each passed test. To make repopulation work, create an sql dump of your database and put it into the __/tests/_data__ directory. Set the database connection and path to the dump in the global Codeception config.
Copy file name to clipboardExpand all lines: docs/modules/Db.md
+50-39Lines changed: 50 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,18 +34,18 @@ Supported but not tested.
34
34
* Oracle
35
35
36
36
Connection is done by database Drivers, which are stored in the `Codeception\Lib\Driver` namespace.
37
-
[Check out the drivers](https://github.com/Codeception/Codeception/tree/2.1/src/Codeception/Lib/Driver) if you run into problems loading dumps and cleaning databases.
37
+
[Check out the drivers](https://github.com/Codeception/Codeception/tree/2.1/src/Codeception/Lib/Driver)
38
+
if you run into problems loading dumps and cleaning databases.
38
39
39
40
### Status
40
41
41
-
* Maintainer: **davert**
42
+
* Maintainer: **Gintautas Miselis**
42
43
* stability:
43
44
- Mysql: **stable**
44
45
- SQLite: **stable**
45
46
- Postgres: **beta**
46
47
- MSSQL: **alpha**
47
48
- Oracle: **alpha**
48
-
* Contact: codecept@davert.mail.ua
49
49
50
50
*Please review the code of non-stable modules and provide patches if you have issues.*
51
51
@@ -59,7 +59,7 @@ Connection is done by database Drivers, which are stored in the `Codeception\Lib
59
59
* cleanup: true - whether the dump should be reloaded after each test
60
60
* reconnect: false - whether the module should reconnect to the database before each test
61
61
62
-
####Example
62
+
### Example
63
63
64
64
modules:
65
65
enabled:
@@ -72,12 +72,12 @@ Connection is done by database Drivers, which are stored in the `Codeception\Lib
72
72
cleanup: false
73
73
reconnect: true
74
74
75
-
####SQL data dump
75
+
### SQL data dump
76
76
77
77
* Comments are permitted.
78
78
* The `dump.sql` may contain multiline statements.
79
79
* The delimiter, a semi-colon in this case, must be on the same line as the last statement:
<p> </p><divclass="alert alert-warning">Module reference is taken from the source code. <ahref="https://github.com/Codeception/Codeception/tree/2.1/src/Codeception/Module/Db.php">Help us to improve documentation. Edit module reference</a></div>
Copy file name to clipboardExpand all lines: docs/modules/Dbh.md
+6-30Lines changed: 6 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,8 @@ Otherwise consider using ORMs like Doctrine, that emulate nested transactions, o
37
37
* Stability: **stable**
38
38
* Contact: codecept@davert.mail.ua
39
39
40
-
This module despite of it's stability may act unstable because of transactions issue. If test fails with fatal error and transaction is not finished, it may affect other transactions.
40
+
This module despite of it's stability may act unstable because of transactions issue.
41
+
If test fails with fatal error and transaction is not finished, it may affect other transactions.
41
42
42
43
*Please review the code of non-stable modules and provide patches if you have issues.*
43
44
@@ -62,25 +63,15 @@ Effect is opposite to ->seeInDatabase
62
63
Asserts that there is no record with the given column values in a database.
SELECT COUNT(*) FROM `users` WHERE `name` = 'Davert' AND `email` = 'davert * `mail.com'`
129
-
130
106
{% endhighlight %}
131
107
Fails if no such user found.
132
108
133
-
* `param` $table
109
+
* `param string` $table
134
110
* `param array` $criteria
135
111
136
112
<p> </p><divclass="alert alert-warning">Module reference is taken from the source code. <ahref="https://github.com/Codeception/Codeception/tree/2.1/src/Codeception/Module/Dbh.php">Help us to improve documentation. Edit module reference</a></div>
0 commit comments