Skip to content

Commit 1c02cbe

Browse files
committed
auto updated documentation
1 parent ebf4069 commit 1c02cbe

File tree

4 files changed

+59
-15
lines changed

4 files changed

+59
-15
lines changed

docs/modules/Doctrine2.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,16 @@ This creates a stub class for Entity\User repository with redefined method findB
151151

152152
#### haveInRepository
153153

154-
Saves data in repository
154+
Persists record into repository.
155+
This method crates an entity, and sets its properties directly (via reflection).
156+
Setters of entity won't be executed, but you can create almost any entity and save it to database.
157+
Returns id using `getId` of newly created entity.
158+
159+
{% highlight php %}
160+
161+
$I->haveInRepository('Entity\User', array('name' => 'davert'));
162+
163+
{% endhighlight %}
155164

156165

157166

docs/modules/Laravel4.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ Codeception creates internal form fields, so you get exception trying to save th
6666

6767

6868

69+
6970

7071

7172
#### amHttpAuthenticated

docs/modules/Symfony2.md

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ title: Symfony2 Module - Codeception - Documentation
88
**For additional reference, please review the [source](https://github.com/Codeception/Codeception/tree/2.0/src/Codeception/Module/Symfony2.php)**
99

1010

11-
This module uses Symfony2 Crawler and HttpKernel to emulate requests and get response.
11+
This module uses Symfony2 Crawler and HttpKernel to emulate requests and test response.
1212

13-
It implements common Framework interface.
13+
### Demo Project
14+
15+
<https://github.com/DavertMik/SymfonyCodeceptionApp>
1416

1517
### Status
1618

@@ -20,19 +22,39 @@ It implements common Framework interface.
2022

2123
### Config
2224

25+
#### Symfony 2.x
26+
2327
* app_path: 'app' - specify custom path to your app dir, where bootstrap cache and kernel interface is located.
2428
* environment: 'local' - environment used for load kernel
25-
* debug: true - switch debug mode
29+
* debug: true - turn on/off debug mode
2630

27-
#### Example (`functional.suite.yml`)
31+
32+
#### Example (`functional.suite.yml`) - Symfony 2.x Directory Structure
2833

2934
modules:
3035
enabled: [Symfony2]
3136
config:
3237
Symfony2:
3338
app_path: 'app/front'
3439
environment: 'local_test'
35-
debug: true
40+
41+
#### Symfony 3.x Directory Structure
42+
43+
* app_path: 'app' - specify custom path to your app dir, where the kernel interface is located.
44+
* var_path: 'var' - specify custom path to your var dir, where bootstrap cache is located.
45+
* environment: 'local' - environment used for load kernel
46+
* debug: true - turn on/off debug mode
47+
48+
#### Example (`functional.suite.yml`) - Symfony 3 Directory Structure
49+
50+
modules:
51+
enabled: [Symfony2]
52+
config:
53+
Symfony2:
54+
app_path: 'app/front'
55+
var_path: 'var'
56+
environment: 'local_test'
57+
3658

3759
### Public Properties
3860

docs/modules/WebDriver.md

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,25 @@ title: WebDriver Module - Codeception - Documentation
88
**For additional reference, please review the [source](https://github.com/Codeception/Codeception/tree/2.0/src/Codeception/Module/WebDriver.php)**
99

1010

11-
New generation Selenium2 module.
12-
*Included in Codeception 1.7.0*
11+
New generation Selenium WebDriver module.
1312

14-
### Installation
13+
### Selenium Installation
1514

16-
Download [Selenium2 WebDriver](http://code.google.com/p/selenium/downloads/list?q=selenium-server-standalone-2)
15+
Download [Selenium Server](http://docs.seleniumhq.org/download/)
1716
Launch the daemon: `java -jar selenium-server-standalone-2.xx.xxx.jar`
1817

19-
### Migration Guide (Selenium2 -> WebDriver)
18+
### PhantomJS Installation
2019

21-
* `wait` method accepts seconds instead of milliseconds. All waits use second as parameter.
20+
PhantomJS is headless alternative to Selenium Server.
2221

22+
* Download [PhantomJS](http://phantomjs.org/download.html)
23+
* Run PhantomJS in webdriver mode `phantomjs --webdriver=4444`
2324

2425

2526
### Status
2627

2728
* Maintainer: **davert**
28-
* Stability: **beta**
29+
* Stability: **stable**
2930
* Contact: davert.codecept@mailican.com
3031
* Based on [facebook php-webdriver](https://github.com/facebook/php-webdriver)
3132

@@ -54,9 +55,10 @@ Launch the daemon: `java -jar selenium-server-standalone-2.xx.xxx.jar`
5455
capabilities:
5556
unexpectedAlertBehaviour: 'accept'
5657

58+
### Migration Guide (Selenium2 -> WebDriver)
59+
60+
* `wait` method accepts seconds instead of milliseconds. All waits use second as parameter.
5761

58-
Class WebDriver
59-
@package Codeception\Module
6062

6163

6264

@@ -515,6 +517,16 @@ If Codeception lacks important Selenium methods implement then and submit patche
515517

516518
Executes custom JavaScript
517519

520+
In this example we will use jQuery to get a value and assign this value to a variable.
521+
522+
{% highlight php %}
523+
524+
<?php
525+
$myVar = $I->executeJS('return $("#myField").val()');
526+
?>
527+
528+
{% endhighlight %}
529+
518530
* `param` $script
519531

520532

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