Skip to content

Commit d1eec44

Browse files
committed
auto updated documentation
1 parent c9a89eb commit d1eec44

17 files changed

+2095
-24
lines changed

changelog.markdown

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

88
# Changelog
99

10+
11+
#### 2.0.12
12+
13+
* <strong>[Laravel5]</strong> Fix for undefined method `Symfony\Component\HttpFoundation\Request::route()` by <strong><a href="https://github.com/janhenkgerritsen">@janhenkgerritsen</a></strong>
14+
* <strong>[Yii2]</strong> Fix https support and verbose output added by <strong><a href="https://github.com/TriAnMan">@TriAnMan</a></strong> See <a href="https://github.com/Codeception/Codeception/issues/1770">#1770</a>
15+
* <strong>[Yii2]</strong> `haveRecord` to insert insert unsafe attributes by <strong><a href="https://github.com/nkovacs">@nkovacs</a></strong>. Fixes <a href="https://github.com/Codeception/Codeception/issues/1775">#1775</a>
16+
* <strong>[Asserts]</strong> `assertSame` and `assertNotSame` added by <strong><a href="https://github.com/hidechae">@hidechae</a></strong> *2015-04-03*
17+
* <strong>[Laravel5]</strong> Add `packages` option for application packages by <strong><a href="https://github.com/jonathantorres">@jonathantorres</a></strong> <a href="https://github.com/Codeception/Codeception/issues/1782">#1782</a>
18+
* <strong>[PhpBrowser]</strong><strong>[WebDriver]</strong><strong>[Frameworks]</strong> `seeInFormFields` method added for checking multiple form field values. See <a href="https://github.com/Codeception/Codeception/issues/1795">#1795</a> *2015-04-03*
19+
* <strong>[ZF2]</strong> Fixed setting Content-Type header by <strong><a href="https://github.com/Gorp">@Gorp</a></strong> See <a href="https://github.com/Codeception/Codeception/issues/1796">#1796</a> *2015-04-03*
20+
* <strong>[Yii2]</strong> Pass body request into yii2 request, allowing to send Xml payload by <strong><a href="https://github.com/m8rge">@m8rge</a></strong>. See <a href="https://github.com/Codeception/Codeception/issues/1806">#1806</a>
21+
* Fixed conditional assertions firing TEST_AFTER event by <strong><a href="https://github.com/zbateson">@zbateson</a></strong>. Issues <a href="https://github.com/Codeception/Codeception/issues/1647">#1647</a> <a href="https://github.com/Codeception/Codeception/issues/1354">#1354</a> and <a href="https://github.com/Codeception/Codeception/issues/1111">#1111</a> *2015-04-03*
22+
* Fixing mocking Laravel models by removing `__mocked` property in classes created with Stub by <strong><a href="https://github.com/EVODelavega">@EVODelavega</a></strong> See <a href="https://github.com/Codeception/Codeception/issues/1785">#1785</a> *2015-04-03*
23+
* <strong>[WebDriver]</strong> `submitForm` allows array parameter values by <strong><a href="https://github.com/zbateson">@zbateson</a></strong> *2015-04-03*
24+
* <strong>[SOAP]</strong> Added `framework_collect_buffer` option to disable buffering output by <strong><a href="https://github.com/Noles">@Noles</a></strong> *2015-04-03*
25+
* <strong>[Laravel4]</strong> added to run artisan commands by <strong><a href="https://github.com/bgetsug">@bgetsug</a></strong> *2015-04-03*
26+
* <strong>[AMQP]</strong> add a routing key to a push to exchange by <strong><a href="https://github.com/jistok">@jistok</a></strong> *2015-04-03*
27+
* Interactive console updated to work with namespaces by <strong><a href="https://github.com/jistok">@jistok</a></strong> *2015-04-03*
28+
* <strong>[PhpBrowser]</strong> added deleteHeader method by <strong><a href="https://github.com/zbateson">@zbateson</a></strong> *2015-04-03*
29+
* Disabling loading of bootstrap files by setting `bootstrap: false` in globall settings or inside suite config. Fixes <a href="https://github.com/Codeception/Codeception/issues/1813">#1813</a> *2015-04-03*
30+
31+
1032
#### 2.0.11
1133

1234
* Updated to PHPUnit 4.5 *2015-02-23*

docs/11-Codecoverage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ The basic codecoverage can be collected for functional and unit tests.
7777
If you performed configuration steps from above, you are ready to go.
7878
All you need is to execute codeception with `--coverage` option.
7979

80-
To generate a clover xml report or a tasty html report append also `--xml` and `--html` options.
80+
To generate a clover xml report or a tasty html report append also `--coverage-xml` and `--coverage-html` options.
8181

8282
{% highlight yaml %}
8383

84-
codecept run --coverage --xml --html
84+
codecept run --coverage --coverage-xml --coverage-html
8585

8686
{% endhighlight %}
8787

docs/modules/AMQP.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,19 +67,22 @@ $message = $I->grabMessageFromQueue('queue.emails');
6767

6868
#### pushToExchange
6969

70-
Sends message to exchange
70+
Sends message to exchange by sending exchange name, message
71+
and (optionally) a routing key
7172

7273
{% highlight php %}
7374

7475
<?php
7576
$I->pushToExchange('exchange.emails', 'thanks');
7677
$I->pushToExchange('exchange.emails', new AMQPMessage('Thanks!'));
78+
$I->pushToExchange('exchange.emails', new AMQPMessage('Thanks!'), 'severity');
7779
?>
7880

7981
{% endhighlight %}
8082

8183
* `param` $exchange
8284
* `param` $message string|AMQPMessage
85+
* `param` $routing_key
8386

8487

8588
#### pushToQueue

docs/modules/Asserts.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,15 @@ Checks that variable is not NULL
127127
* `param string` $message
128128

129129

130+
#### assertNotSame
131+
132+
Checks that two variables are not same
133+
134+
* `param` $expected
135+
* `param` $actual
136+
* `param string` $message
137+
138+
130139
#### assertNull
131140

132141
Checks that variable is NULL
@@ -135,6 +144,16 @@ Checks that variable is NULL
135144
* `param string` $message
136145

137146

147+
#### assertSame
148+
149+
Checks that two variables are same
150+
151+
* `param` $expected
152+
* `param` $actual
153+
* `param string` $message
154+
155+
156+
138157
#### assertTrue
139158

140159
Checks that condition is positive.

docs/modules/Kohana.md

Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,55 @@ $I->dontSeeInField(['name' => 'search'], 'Search');
258258
* `param` $value
259259

260260

261+
#### dontSeeInFormFields
262+
263+
Checks if the array of form parameters (name => value) are not set on the form matched with
264+
the passed selector.
265+
266+
{% highlight php %}
267+
268+
<?php
269+
$I->dontSeeInFormFields('form[name=myform]', [
270+
'input1' => 'non-existent value',
271+
'input2' => 'other non-existent value',
272+
]);
273+
?>
274+
275+
{% endhighlight %}
276+
277+
To check that an element hasn't been assigned any one of many values, an array can be passed
278+
as the value:
279+
280+
{% highlight php %}
281+
282+
<?php
283+
$I->dontSeeInFormFields('.form-class', [
284+
'fieldName' => [
285+
'This value shouldn\'t be set',
286+
'And this value shouldn\'t be set',
287+
],
288+
]);
289+
?>
290+
291+
{% endhighlight %}
292+
293+
Additionally, checkbox values can be checked with a boolean.
294+
295+
{% highlight php %}
296+
297+
<?php
298+
$I->dontSeeInFormFields('#form-id', [
299+
'checkbox1' => true, // fails if checked
300+
'checkbox2' => false, // fails if unchecked
301+
]);
302+
?>
303+
304+
{% endhighlight %}
305+
306+
* `param` $formSelector
307+
* `param` $params
308+
309+
261310
#### dontSeeInTitle
262311

263312
Checks that the page title does not contain the given string.
@@ -552,6 +601,77 @@ $I->seeInField(['name' => 'search'], 'Search');
552601
* `param` $value
553602

554603

604+
#### seeInFormFields
605+
606+
Checks if the array of form parameters (name => value) are set on the form matched with the
607+
passed selector.
608+
609+
{% highlight php %}
610+
611+
<?php
612+
$I->seeInFormFields('form[name=myform]', [
613+
'input1' => 'value',
614+
'input2' => 'other value',
615+
]);
616+
?>
617+
618+
{% endhighlight %}
619+
620+
For multi-select elements, or to check values of multiple elements with the same name, an
621+
array may be passed:
622+
623+
{% highlight php %}
624+
625+
<?php
626+
$I->seeInFormFields('.form-class', [
627+
'multiselect' => [
628+
'value1',
629+
'value2',
630+
],
631+
'checkbox[]' => [
632+
'a checked value',
633+
'another checked value',
634+
],
635+
]);
636+
?>
637+
638+
{% endhighlight %}
639+
640+
Additionally, checkbox values can be checked with a boolean.
641+
642+
{% highlight php %}
643+
644+
<?php
645+
$I->seeInFormFields('#form-id', [
646+
'checkbox1' => true, // passes if checked
647+
'checkbox2' => false, // passes if unchecked
648+
]);
649+
?>
650+
651+
{% endhighlight %}
652+
653+
Pair this with submitForm for quick testing magic.
654+
655+
{% highlight php %}
656+
657+
<?php
658+
$form = [
659+
'field1' => 'value',
660+
'field2' => 'another value',
661+
'checkbox1' => true,
662+
// ...
663+
];
664+
$I->submitForm('//form[@id=my-form]', $form, 'submitButton');
665+
// $I->amOnPage('/path/to/form-page') may be needed
666+
$I->seeInFormFields('//form[@id=my-form]', $form);
667+
?>
668+
669+
{% endhighlight %}
670+
671+
* `param` $formSelector
672+
* `param` $params
673+
674+
555675
#### seeInTitle
556676

557677
Checks that the page title contains the given string.
@@ -801,6 +921,55 @@ $I->submitForm('#userForm', array('user' => array('login' => 'Davert', 'password
801921

802922
{% endhighlight %}
803923

924+
Pair this with seeInFormFields for quick testing magic.
925+
926+
{% highlight php %}
927+
928+
<?php
929+
$form = [
930+
'field1' => 'value',
931+
'field2' => 'another value',
932+
'checkbox1' => true,
933+
// ...
934+
];
935+
$I->submitForm('//form[@id=my-form]', $form, 'submitButton');
936+
// $I->amOnPage('/path/to/form-page') may be needed
937+
$I->seeInFormFields('//form[@id=my-form]', $form);
938+
?>
939+
940+
{% endhighlight %}
941+
942+
Parameter values can be set to arrays for multiple input fields
943+
of the same name, or multi-select combo boxes. For checkboxes,
944+
either the string value can be used, or boolean values which will
945+
be replaced by the checkbox's value in the DOM.
946+
947+
{% highlight php %}
948+
949+
<?php
950+
$I->submitForm('#my-form', [
951+
'field1' => 'value',
952+
'checkbox' => [
953+
'value of first checkbox',
954+
'value of second checkbox,
955+
],
956+
'otherCheckboxes' => [
957+
true,
958+
false,
959+
false
960+
],
961+
'multiselect' => [
962+
'first option value',
963+
'second option value'
964+
]
965+
]);
966+
?>
967+
968+
{% endhighlight %}
969+
970+
Mixing string and boolean values for a checkbox's value is not
971+
supported and may produce unexpected results.
972+
804973
* `param` $selector
805974
* `param` $params
806975
* `param` $button

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