Skip to content

Commit c520578

Browse files
committed
auto updated documentation
1 parent 1db3273 commit c520578

6 files changed

Lines changed: 24 additions & 20 deletions

File tree

_includes/extensions.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ extensions:
4848

4949
* `delete_successful` (default: true) - delete records for successfully passed tests (log only failed and errored)
5050
* `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.
51-
* `animate_slides` (default: true) - set false to disable sliding transition between screenshots
5251

5352
``` yaml
5453
extensions:

docs/modules/WebDriver.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ In case you want to test a local site or site behind a firewall you should use a
5959
1. Create an account at [SauceLabs.com](http://SauceLabs.com) to get your username and access key
6060
2. In the module configuration use the format `username`:`access_key`@ondemand.saucelabs.com' for `host`
6161
3. Configure `platform` under `capabilities` to define the [Operating System](https://docs.saucelabs.com/reference/platforms-configurator/#/)
62+
4. run a tunnel app if your site can't be accessed from Internet
6263

6364
{% highlight yaml %}
6465

@@ -73,13 +74,13 @@ In case you want to test a local site or site behind a firewall you should use a
7374
platform: 'Windows 10'
7475

7576
{% endhighlight %}
76-
4. run a tunnel app if your site can't be accessed from Internet
7777

7878
#### BrowserStack
7979

8080
1. Create an account at [BrowserStack](https://www.browserstack.com/) to get your username and access key
8181
2. In the module configuration use the format `username`:`access_key`@ondemand.saucelabs.com' for `host`
8282
3. Configure `platform` under `capabilities` to define the [Operating System](https://docs.saucelabs.com/reference/platforms-configurator/#/)
83+
4. If your site is available only locally or via VPN you should use a tunnel app. In this case add `browserstack.local` capability and set it to true.
8384

8485
{% highlight yaml %}
8586

@@ -96,7 +97,6 @@ In case you want to test a local site or site behind a firewall you should use a
9697
browserstack.local: true # for local testing
9798

9899
{% endhighlight %}
99-
4. run a tunnel app if your site can't be accessed from Internet. In this case ensure that `browserstack.local` capability is set to true.
100100

101101
### Configuration
102102

@@ -117,6 +117,8 @@ In case you want to test a local site or site behind a firewall you should use a
117117

118118
Example (`acceptance.suite.yml`)
119119

120+
{% highlight yaml %}
121+
120122
modules:
121123
enabled:
122124
- WebDriver:
@@ -127,6 +129,8 @@ Example (`acceptance.suite.yml`)
127129
unexpectedAlertBehaviour: 'accept'
128130
firefox_profile: '~/firefox-profiles/codeception-profile.zip.b64'
129131

132+
{% endhighlight %}
133+
130134
#### Status
131135

132136
Stability: **stable**

docs/reference/Commands.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ Starting from Codeception 2.0 actor classes are auto-generated. Use this command
123123
Creates empty Helper class.
124124

125125
* `codecept g:helper MyHelper`
126+
* `codecept g:helper "My\Helper"`
126127

127128

128129

docs/reference/JsonType.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ Example:
5555
{% highlight php %}
5656

5757
<?php
58-
JsonType::addCustomFilter('email', function($value) {
59-
return strpos(' * `',` $value) !== false;
58+
JsonType::addCustomFilter('slug', function($value) {
59+
return strpos(' ', $value) !== false;
6060
});
61-
// => use it as 'string:email'
61+
// => use it as 'string:slug'
6262

6363

6464
// add custom function to matcher with `len($val)` syntax

docs/reference/Stub.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ $user->getName();
3030

3131
* `return` StubMarshaler
3232

33-
[See source](https://github.com/Codeception/Codeception/blob/2.1/src/Codeception/Util/Stub.php#L663)
33+
[See source](https://github.com/Codeception/Codeception/blob/2.1/src/Codeception/Util/Stub.php#L666)
3434

3535
#### *public static* consecutive()
3636

@@ -50,7 +50,7 @@ $user->getName(); //amy
5050

5151
* `return` ConsecutiveMap
5252

53-
[See source](https://github.com/Codeception/Codeception/blob/2.1/src/Codeception/Util/Stub.php#L726)
53+
[See source](https://github.com/Codeception/Codeception/blob/2.1/src/Codeception/Util/Stub.php#L729)
5454

5555
#### *public static* construct($class, $constructorParams = null, $params = null, $testCase = null)
5656

@@ -96,7 +96,7 @@ Stub::construct('User', array(), array('save' => true }));
9696

9797
* `return` object
9898

99-
[See source](https://github.com/Codeception/Codeception/blob/2.1/src/Codeception/Util/Stub.php#L279)
99+
[See source](https://github.com/Codeception/Codeception/blob/2.1/src/Codeception/Util/Stub.php#L282)
100100

101101
#### *public static* constructEmpty($class, $constructorParams = null, $params = null, $testCase = null)
102102

@@ -142,7 +142,7 @@ Stub::constructEmpty('User', array(), array('save' => true }));
142142

143143
* `return` object
144144

145-
[See source](https://github.com/Codeception/Codeception/blob/2.1/src/Codeception/Util/Stub.php#L330)
145+
[See source](https://github.com/Codeception/Codeception/blob/2.1/src/Codeception/Util/Stub.php#L333)
146146

147147
#### *public static* constructEmptyExcept($class, $method, $constructorParams = null, $params = null, $testCase = null)
148148

@@ -189,7 +189,7 @@ Stub::constructEmptyExcept('User', 'save', array(), array('save' => true }));
189189

190190
* `return` object
191191

192-
[See source](https://github.com/Codeception/Codeception/blob/2.1/src/Codeception/Util/Stub.php#L386)
192+
[See source](https://github.com/Codeception/Codeception/blob/2.1/src/Codeception/Util/Stub.php#L389)
193193

194194
#### *public static* copy($obj, $params = null)
195195

@@ -200,7 +200,7 @@ Clones an object and redefines it's properties (even protected and private)
200200

201201
* `return` mixed
202202

203-
[See source](https://github.com/Codeception/Codeception/blob/2.1/src/Codeception/Util/Stub.php#L234)
203+
[See source](https://github.com/Codeception/Codeception/blob/2.1/src/Codeception/Util/Stub.php#L237)
204204

205205
#### *public static* exactly($count, $params = null)
206206

@@ -227,7 +227,7 @@ $user->getName();
227227

228228
* `return` StubMarshaler
229229

230-
[See source](https://github.com/Codeception/Codeception/blob/2.1/src/Codeception/Util/Stub.php#L693)
230+
[See source](https://github.com/Codeception/Codeception/blob/2.1/src/Codeception/Util/Stub.php#L696)
231231

232232
#### *public static* factory($class, $num = null, $params = null)
233233

@@ -239,7 +239,7 @@ Creates $num instances of class through `Stub::make`.
239239

240240
* `return` array
241241

242-
[See source](https://github.com/Codeception/Codeception/blob/2.1/src/Codeception/Util/Stub.php#L90)
242+
[See source](https://github.com/Codeception/Codeception/blob/2.1/src/Codeception/Util/Stub.php#L93)
243243

244244
#### *public static* make($class, $params = null, $testCase = null)
245245

@@ -329,7 +329,7 @@ Stub::makeEmpty('User', array('save' => true }));
329329

330330
* `return` object
331331

332-
[See source](https://github.com/Codeception/Codeception/blob/2.1/src/Codeception/Util/Stub.php#L208)
332+
[See source](https://github.com/Codeception/Codeception/blob/2.1/src/Codeception/Util/Stub.php#L211)
333333

334334
#### *public static* makeEmptyExcept($class, $method, $params = null, $testCase = null)
335335

@@ -375,7 +375,7 @@ Stub::makeEmptyExcept('User', 'save', array('isValid' => true }));
375375

376376
* `return` object
377377

378-
[See source](https://github.com/Codeception/Codeception/blob/2.1/src/Codeception/Util/Stub.php#L137)
378+
[See source](https://github.com/Codeception/Codeception/blob/2.1/src/Codeception/Util/Stub.php#L140)
379379

380380
#### *public static* never($params = null)
381381

@@ -397,7 +397,7 @@ $user->someMethod();
397397

398398
* `return` StubMarshaler
399399

400-
[See source](https://github.com/Codeception/Codeception/blob/2.1/src/Codeception/Util/Stub.php#L610)
400+
[See source](https://github.com/Codeception/Codeception/blob/2.1/src/Codeception/Util/Stub.php#L613)
401401

402402
#### *public static* once($params = null)
403403

@@ -421,7 +421,7 @@ $this->assertEquals('Davert', $userName);
421421

422422
* `return` StubMarshaler
423423

424-
[See source](https://github.com/Codeception/Codeception/blob/2.1/src/Codeception/Util/Stub.php#L637)
424+
[See source](https://github.com/Codeception/Codeception/blob/2.1/src/Codeception/Util/Stub.php#L640)
425425

426426
#### *public static* update($mock, array $params)
427427

@@ -433,6 +433,6 @@ Replaces properties of current stub
433433
* `return` mixed
434434
* `throws` \LogicException
435435

436-
[See source](https://github.com/Codeception/Codeception/blob/2.1/src/Codeception/Util/Stub.php#L479)
436+
[See source](https://github.com/Codeception/Codeception/blob/2.1/src/Codeception/Util/Stub.php#L482)
437437

438438
<p>&nbsp;</p><div class="alert alert-warning">Reference is taken from the source code. <a href="https://github.com/Codeception/Codeception/blob/2.1/src/Codeception/Util/Stub.php">Help us to improve documentation. Edit module reference</a></div>

docs/reference/XmlBuilder.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ $xml->users
2727
->attr('empty','false')
2828
->items
2929
->item
30-
->val('useful item')
30+
->val('useful item');
3131
->parents('user')
3232
->active
3333
->val(1);

0 commit comments

Comments
 (0)