Skip to content

Commit b130fb6

Browse files
committed
auto updated documentation
1 parent c727ff3 commit b130fb6

File tree

17 files changed

+2180
-194
lines changed

17 files changed

+2180
-194
lines changed

_includes/modules.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<li><a href="/docs/modules/AMQP">AMQP</a></li><li><a href="/docs/modules/PhpBrowser">PhpBrowser</a></li><li><a href="/docs/modules/Asserts">Asserts</a></li><li><a href="/docs/modules/Queue">Queue</a></li><li><a href="/docs/modules/Cli">Cli</a></li><li><a href="/docs/modules/REST">REST</a></li><li><a href="/docs/modules/Db">Db</a></li><li><a href="/docs/modules/Redis">Redis</a></li><li><a href="/docs/modules/Dbh">Dbh</a></li><li><a href="/docs/modules/SOAP">SOAP</a></li><li><a href="/docs/modules/Doctrine1">Doctrine1</a></li><li><a href="/docs/modules/Sequence">Sequence</a></li><li><a href="/docs/modules/Doctrine2">Doctrine2</a></li><li><a href="/docs/modules/Silex">Silex</a></li><li><a href="/docs/modules/FTP">FTP</a></li><li><a href="/docs/modules/Symfony1">Symfony1</a></li><li><a href="/docs/modules/Facebook">Facebook</a></li><li><a href="/docs/modules/Symfony2">Symfony2</a></li><li><a href="/docs/modules/Filesystem">Filesystem</a></li><li><a href="/docs/modules/WebDriver">WebDriver</a></li><li><a href="/docs/modules/Kohana">Kohana</a></li><li><a href="/docs/modules/XMLRPC">XMLRPC</a></li><li><a href="/docs/modules/Laravel4">Laravel4</a></li><li><a href="/docs/modules/Yii1">Yii1</a></li><li><a href="/docs/modules/Laravel5">Laravel5</a></li><li><a href="/docs/modules/Yii2">Yii2</a></li><li><a href="/docs/modules/Memcache">Memcache</a></li><li><a href="/docs/modules/ZF1">ZF1</a></li><li><a href="/docs/modules/MongoDb">MongoDb</a></li><li><a href="/docs/modules/ZF2">ZF2</a></li><li><a href="/docs/modules/Phalcon1">Phalcon1</a></li>
1+
<li><a href="/docs/modules/AMQP">AMQP</a></li><li><a href="/docs/modules/Phalcon1">Phalcon1</a></li><li><a href="/docs/modules/Asserts">Asserts</a></li><li><a href="/docs/modules/PhpBrowser">PhpBrowser</a></li><li><a href="/docs/modules/Cli">Cli</a></li><li><a href="/docs/modules/Queue">Queue</a></li><li><a href="/docs/modules/Db">Db</a></li><li><a href="/docs/modules/REST">REST</a></li><li><a href="/docs/modules/Dbh">Dbh</a></li><li><a href="/docs/modules/Redis">Redis</a></li><li><a href="/docs/modules/Doctrine1">Doctrine1</a></li><li><a href="/docs/modules/SOAP">SOAP</a></li><li><a href="/docs/modules/Doctrine2">Doctrine2</a></li><li><a href="/docs/modules/Sequence">Sequence</a></li><li><a href="/docs/modules/FTP">FTP</a></li><li><a href="/docs/modules/Silex">Silex</a></li><li><a href="/docs/modules/Facebook">Facebook</a></li><li><a href="/docs/modules/Symfony1">Symfony1</a></li><li><a href="/docs/modules/Filesystem">Filesystem</a></li><li><a href="/docs/modules/Symfony2">Symfony2</a></li><li><a href="/docs/modules/Kohana">Kohana</a></li><li><a href="/docs/modules/WebDriver">WebDriver</a></li><li><a href="/docs/modules/Laravel4">Laravel4</a></li><li><a href="/docs/modules/XMLRPC">XMLRPC</a></li><li><a href="/docs/modules/Laravel5">Laravel5</a></li><li><a href="/docs/modules/Yii1">Yii1</a></li><li><a href="/docs/modules/Lumen">Lumen</a></li><li><a href="/docs/modules/Yii2">Yii2</a></li><li><a href="/docs/modules/Memcache">Memcache</a></li><li><a href="/docs/modules/ZF1">ZF1</a></li><li><a href="/docs/modules/MongoDb">MongoDb</a></li><li><a href="/docs/modules/ZF2">ZF2</a></li>

changelog.markdown

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,24 @@ title: Codeception Changelog
77

88
# Changelog
99

10+
#### 2.0.15
11+
12+
* <strong>[Phalcon1]</strong> Fixed getting has more than one field by <strong><a href="https://github.com/sergeyklay">@sergeyklay</a></strong> <a href="https://github.com/Codeception/Codeception/issues/2010">#2010</a>.
13+
* <strong>[PhpBrowser]</strong><strong>[Frameworks]</strong> Compute relative URIs against the effective request URI when there is a redirect. <a href="https://github.com/Codeception/Codeception/issues/2058">#2058</a> <a href="https://github.com/Codeception/Codeception/issues/2057">#2057</a>
14+
* <strong>[PhpBrowser]</strong> Fixed Guzzle Connector headers by <strong><a href="https://github.com/valeriyaslovikovskaya">@valeriyaslovikovskaya</a></strong> <a href="https://github.com/Codeception/Codeception/issues/2028">#2028</a>
15+
* <strong>[Symfony2]</strong> kernel is created for every test by <strong><a href="https://github.com/quaninte">@quaninte</a></strong> <a href="https://github.com/Codeception/Codeception/issues/2020">#2020</a>
16+
* <strong>[WebDriver]</strong> Added WebDriver init settings `connection_timeout` and `request_timeout` by <strong><a href="https://github.com/n8whnp">@n8whnp</a></strong> <a href="https://github.com/Codeception/Codeception/issues/2065">#2065</a>
17+
* <strong>[MongoDb]</strong> added ability to change the database by <strong><a href="https://github.com/clarkeash">@clarkeash</a></strong> <a href="https://github.com/Codeception/Codeception/issues/2015">#2015</a>
18+
* <strong>[Doctrine2]</strong> Fixed issues after first request is made <a href="https://github.com/Codeception/Codeception/issues/2025">#2025</a> <strong><a href="https://github.com/AlexStansfield">@AlexStansfield</a></strong>
19+
* <strong>[REST]</strong> Improved JsonArray to compare repeated values correctly by <strong><a href="https://github.com/Naktibalda">@Naktibalda</a></strong> <a href="https://github.com/Codeception/Codeception/issues/2070">#2070</a>
20+
* <strong>[MongoDb]</strong> Remove not necessary config fields `user` and `password` by <strong><a href="https://github.com/nicklasos">@nicklasos</a></strong>
21+
* `Stub::construct` can be used to set private/protected properties by <strong><a href="https://github.com/Naktibalda">@Naktibalda</a></strong> <a href="https://github.com/Codeception/Codeception/issues/2082">#2082</a>
22+
* Fixed <strong><a href="https://github.com/before">@before</a></strong> and <strong><a href="https://github.com/after">@after</a></strong> hooks in Cest. _before method was executed on each call of method specified in <strong><a href="https://github.com/before">@before</a></strong> annotation *2015-06-15*
23+
* <strong>[Laravel5]</strong> Fix for domains in `route()` helper. See <a href="https://github.com/Codeception/Codeception/issues/2000">#2000</a>. *2015-06-04*
24+
* <strong>[REST]</strong> Fixed sending `JsonSerializable` object on POST by <strong><a href="https://github.com/Naktibalda">@Naktibalda</a></strong> and <strong><a href="https://github.com/andersonamuller">@andersonamuller</a></strong>. See <a href="https://github.com/Codeception/Codeception/issues/1988">#1988</a> <a href="https://github.com/Codeception/Codeception/issues/1994">#1994</a>
25+
* <strong>[MongoDb]</strong> escaped filename shell argument for loading MongoDB by <strong><a href="https://github.com/christoph">@christoph</a></strong>-hautzinger. <a href="https://github.com/Codeception/Codeception/issues/1998">#1998</a> *2015-06-03*
26+
* <strong>[Lumen]</strong> **Module added** by <strong><a href="https://github.com/janhenkgerritsen">@janhenkgerritsen</a></strong>
27+
1028
#### 2.0.14
1129

1230
* Improved output *2015-05-22*

docs/modules/Kohana.md

Lines changed: 75 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -862,8 +862,8 @@ $I->setCookie('PHPSESSID', 'el4ukv0kqbvoirg7nkp4dncpk3');
862862

863863
#### submitForm
864864

865-
Submits the given form on the page, optionally with the given form values.
866-
Give the form fields values as an array.
865+
Submits the given form on the page, optionally with the given form
866+
values. Give the form fields values as an array.
867867

868868
Skipped fields will be filled by their values from the page.
869869
You don't need to click the 'Submit' button afterwards.
@@ -879,9 +879,15 @@ Examples:
879879
{% highlight php %}
880880

881881
<?php
882-
$I->submitForm('#login', array('login' => 'davert', 'password' => '123456'));
882+
$I->submitForm('#login', [
883+
'login' => 'davert',
884+
'password' => '123456'
885+
]);
883886
// or
884-
$I->submitForm('#login', array('login' => 'davert', 'password' => '123456'), 'submitButtonName');
887+
$I->submitForm('#login', [
888+
'login' => 'davert',
889+
'password' => '123456'
890+
], 'submitButtonName');
885891

886892

887893
{% endhighlight %}
@@ -891,10 +897,17 @@ For example, given this sample "Sign Up" form:
891897
{% highlight html %}
892898

893899
<form action="/sign_up">
894-
Login: <input type="text" name="user[login]" /><br/>
895-
Password: <input type="password" name="user[password]" /><br/>
896-
Do you agree to out terms? <input type="checkbox" name="user[agree]" /><br/>
897-
Select pricing plan <select name="plan"><option value="1">Free</option><option value="2" selected="selected">Paid</option></select>
900+
Login:
901+
<input type="text" name="user[login]" /><br/>
902+
Password:
903+
<input type="password" name="user[password]" /><br/>
904+
Do you agree to out terms?
905+
<input type="checkbox" name="user[agree]" /><br/>
906+
Select pricing plan:
907+
<select name="plan">
908+
<option value="1">Free</option>
909+
<option value="2" selected="selected">Paid</option>
910+
</select>
898911
<input type="submit" name="submitButton" value="Submit" />
899912
</form>
900913

@@ -905,19 +918,38 @@ You could write the following to submit it:
905918
{% highlight php %}
906919

907920
<?php
908-
$I->submitForm('#userForm', array('user' => array('login' => 'Davert', 'password' => '123456', 'agree' => true)), 'submitButton');
909-
921+
$I->submitForm(
922+
'#userForm',
923+
[
924+
'user' => [
925+
'login' => 'Davert',
926+
'password' => '123456',
927+
'agree' => true
928+
]
929+
],
930+
'submitButton'
931+
);
910932

911933
{% endhighlight %}
912-
Note that "2" will be the submitted value for the "plan" field, as it is the selected option.
934+
Note that "2" will be the submitted value for the "plan" field, as it is
935+
the selected option.
913936

914-
You can also emulate a JavaScript submission by not specifying any buttons in the third parameter to submitForm.
937+
You can also emulate a JavaScript submission by not specifying any
938+
buttons in the third parameter to submitForm.
915939

916940
{% highlight php %}
917941

918942
<?php
919-
$I->submitForm('#userForm', array('user' => array('login' => 'Davert', 'password' => '123456', 'agree' => true)));
920-
943+
$I->submitForm(
944+
'#userForm',
945+
[
946+
'user' => [
947+
'login' => 'Davert',
948+
'password' => '123456',
949+
'agree' => true
950+
]
951+
]
952+
);
921953

922954
{% endhighlight %}
923955

@@ -967,8 +999,35 @@ $I->submitForm('#my-form', [
967999

9681000
{% endhighlight %}
9691001

970-
Mixing string and boolean values for a checkbox's value is not
971-
supported and may produce unexpected results.
1002+
Mixing string and boolean values for a checkbox's value is not supported
1003+
and may produce unexpected results.
1004+
1005+
Field names ending in "[]" must be passed without the trailing square
1006+
bracket characters, and must contain an array for its value. This allows
1007+
submitting multiple values with the same name, consider:
1008+
1009+
{% highlight php %}
1010+
1011+
$I->submitForm('#my-form', [
1012+
'field[]' => 'value',
1013+
'field[]' => 'another value', // 'field[]' is already a defined key
1014+
]);
1015+
1016+
{% endhighlight %}
1017+
1018+
The solution is to pass an array value:
1019+
1020+
{% highlight php %}
1021+
1022+
// this way both values are submitted
1023+
$I->submitForm('#my-form', [
1024+
'field' => [
1025+
'value',
1026+
'another value',
1027+
]
1028+
]);
1029+
1030+
{% endhighlight %}
9721031

9731032
* `param` $selector
9741033
* `param` $params

docs/modules/Laravel4.md

Lines changed: 75 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,8 +1217,8 @@ $I->setCookie('PHPSESSID', 'el4ukv0kqbvoirg7nkp4dncpk3');
12171217

12181218
#### submitForm
12191219

1220-
Submits the given form on the page, optionally with the given form values.
1221-
Give the form fields values as an array.
1220+
Submits the given form on the page, optionally with the given form
1221+
values. Give the form fields values as an array.
12221222

12231223
Skipped fields will be filled by their values from the page.
12241224
You don't need to click the 'Submit' button afterwards.
@@ -1234,9 +1234,15 @@ Examples:
12341234
{% highlight php %}
12351235

12361236
<?php
1237-
$I->submitForm('#login', array('login' => 'davert', 'password' => '123456'));
1237+
$I->submitForm('#login', [
1238+
'login' => 'davert',
1239+
'password' => '123456'
1240+
]);
12381241
// or
1239-
$I->submitForm('#login', array('login' => 'davert', 'password' => '123456'), 'submitButtonName');
1242+
$I->submitForm('#login', [
1243+
'login' => 'davert',
1244+
'password' => '123456'
1245+
], 'submitButtonName');
12401246

12411247

12421248
{% endhighlight %}
@@ -1246,10 +1252,17 @@ For example, given this sample "Sign Up" form:
12461252
{% highlight html %}
12471253

12481254
<form action="/sign_up">
1249-
Login: <input type="text" name="user[login]" /><br/>
1250-
Password: <input type="password" name="user[password]" /><br/>
1251-
Do you agree to out terms? <input type="checkbox" name="user[agree]" /><br/>
1252-
Select pricing plan <select name="plan"><option value="1">Free</option><option value="2" selected="selected">Paid</option></select>
1255+
Login:
1256+
<input type="text" name="user[login]" /><br/>
1257+
Password:
1258+
<input type="password" name="user[password]" /><br/>
1259+
Do you agree to out terms?
1260+
<input type="checkbox" name="user[agree]" /><br/>
1261+
Select pricing plan:
1262+
<select name="plan">
1263+
<option value="1">Free</option>
1264+
<option value="2" selected="selected">Paid</option>
1265+
</select>
12531266
<input type="submit" name="submitButton" value="Submit" />
12541267
</form>
12551268

@@ -1260,19 +1273,38 @@ You could write the following to submit it:
12601273
{% highlight php %}
12611274

12621275
<?php
1263-
$I->submitForm('#userForm', array('user' => array('login' => 'Davert', 'password' => '123456', 'agree' => true)), 'submitButton');
1264-
1276+
$I->submitForm(
1277+
'#userForm',
1278+
[
1279+
'user' => [
1280+
'login' => 'Davert',
1281+
'password' => '123456',
1282+
'agree' => true
1283+
]
1284+
],
1285+
'submitButton'
1286+
);
12651287

12661288
{% endhighlight %}
1267-
Note that "2" will be the submitted value for the "plan" field, as it is the selected option.
1289+
Note that "2" will be the submitted value for the "plan" field, as it is
1290+
the selected option.
12681291

1269-
You can also emulate a JavaScript submission by not specifying any buttons in the third parameter to submitForm.
1292+
You can also emulate a JavaScript submission by not specifying any
1293+
buttons in the third parameter to submitForm.
12701294

12711295
{% highlight php %}
12721296

12731297
<?php
1274-
$I->submitForm('#userForm', array('user' => array('login' => 'Davert', 'password' => '123456', 'agree' => true)));
1275-
1298+
$I->submitForm(
1299+
'#userForm',
1300+
[
1301+
'user' => [
1302+
'login' => 'Davert',
1303+
'password' => '123456',
1304+
'agree' => true
1305+
]
1306+
]
1307+
);
12761308

12771309
{% endhighlight %}
12781310

@@ -1322,8 +1354,35 @@ $I->submitForm('#my-form', [
13221354

13231355
{% endhighlight %}
13241356

1325-
Mixing string and boolean values for a checkbox's value is not
1326-
supported and may produce unexpected results.
1357+
Mixing string and boolean values for a checkbox's value is not supported
1358+
and may produce unexpected results.
1359+
1360+
Field names ending in "[]" must be passed without the trailing square
1361+
bracket characters, and must contain an array for its value. This allows
1362+
submitting multiple values with the same name, consider:
1363+
1364+
{% highlight php %}
1365+
1366+
$I->submitForm('#my-form', [
1367+
'field[]' => 'value',
1368+
'field[]' => 'another value', // 'field[]' is already a defined key
1369+
]);
1370+
1371+
{% endhighlight %}
1372+
1373+
The solution is to pass an array value:
1374+
1375+
{% highlight php %}
1376+
1377+
// this way both values are submitted
1378+
$I->submitForm('#my-form', [
1379+
'field' => [
1380+
'value',
1381+
'another value',
1382+
]
1383+
]);
1384+
1385+
{% endhighlight %}
13271386

13281387
* `param` $selector
13291388
* `param` $params

0 commit comments

Comments
 (0)
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