Skip to content

Commit 2814b48

Browse files
authored
Merge pull request #7 from aircodepl/patch-1
Module name fixed (Phalcon5)
2 parents c331afd + 5fbafb4 commit 2814b48

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

documentation.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ return new \Phalcon\Mvc\Application($di);
5656
actor: AcceptanceTester
5757
modules:
5858
enabled:
59-
- Phalcon:
59+
- Phalcon5:
6060
part: services
6161
bootstrap: 'app/config/bootstrap.php'
6262
cleanup: true
@@ -82,10 +82,10 @@ Use it in Helpers or GroupObject or Extension classes:
8282
8383
```php
8484
<?php
85-
$els = $this->getModule('Phalcon')->_findElements('.items');
86-
$els = $this->getModule('Phalcon')->_findElements(['name' => 'username']);
85+
$els = $this->getModule('Phalcon5')->_findElements('.items');
86+
$els = $this->getModule('Phalcon5')->_findElements(['name' => 'username']);
8787

88-
$editLinks = $this->getModule('Phalcon')->_findElements(['link' => 'Edit']);
88+
$editLinks = $this->getModule('Phalcon5')->_findElements(['link' => 'Edit']);
8989
// now you can iterate over $editLinks and check that all them have valid hrefs
9090
```
9191

@@ -108,7 +108,7 @@ Use it in Helpers when you want to retrieve response of request performed by ano
108108
// in Helper class
109109
public function seeResponseContains($text)
110110
{
111-
$this->assertStringContainsString($text, $this->getModule('Phalcon')->_getResponseContent(), "response contains");
111+
$this->assertStringContainsString($text, $this->getModule('Phalcon5')->_getResponseContent(), "response contains");
112112
}
113113
?>
114114
```
@@ -128,7 +128,7 @@ Useful for testing multistep forms on a specific step.
128128
<?php
129129
// in Helper class
130130
public function openCheckoutFormStep2($orderId) {
131-
$this->getModule('Phalcon')->_loadPage('POST', '/checkout/step2', ['order' => $orderId]);
131+
$this->getModule('Phalcon5')->_loadPage('POST', '/checkout/step2', ['order' => $orderId]);
132132
}
133133
?>
134134
```
@@ -153,7 +153,7 @@ Returns a string with response body.
153153
<?php
154154
// in Helper class
155155
public function createUserByApi($name) {
156-
$userData = $this->getModule('Phalcon')->_request('POST', '/api/v1/users', ['name' => $name]);
156+
$userData = $this->getModule('Phalcon5')->_request('POST', '/api/v1/users', ['name' => $name]);
157157
$user = json_decode($userData);
158158
return $user->id;
159159
}
@@ -180,7 +180,7 @@ To load arbitrary page for interaction, use `_loadPage` method.
180180
Saves page source of to a file
181181

182182
```php
183-
$this->getModule('Phalcon')->_savePageSource(codecept_output_dir().'page.html');
183+
$this->getModule('Phalcon5')->_savePageSource(codecept_output_dir().'page.html');
184184
```
185185
* `param` $filename
186186

0 commit comments

Comments
 (0)