Skip to content

Commit 03e9dbb

Browse files
committed
auto updated documentation
1 parent 0653a2e commit 03e9dbb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/10-WebServices.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: Testing WebServices - Codeception - Documentation
77

88
The same way we tested a web site Codeception allows you to test web services. They are very hard to test manually, so it's really good idea to automate web service testing. As a standards we have SOAP and REST which are represented in corresponding modules. We will cover them in this chapter.
99

10-
You should start with creating a new test suite, which was not provided by the `bootstrap` command. We recommend to call it **api** and use the ApiGuy class for it.
10+
You should start with creating a new test suite, which was not provided by the `bootstrap` command. We recommend to call it **api** and use the ApiTester class for it.
1111

1212
{% highlight yaml %}
1313

@@ -50,7 +50,7 @@ It will be called `CreateUserCept.php`. We can use it to test creation of user v
5050
{% highlight php %}
5151

5252
<?php
53-
$I = new ApiGuy($scenario);
53+
$I = new ApiTester($scenario);
5454
$I->wantTo('create a user via API');
5555
$I->amHttpAuthenticated('service_user','123456');
5656
$I->haveHttpHeader('Content-Type','application/x-www-form-urlencoded');
@@ -168,7 +168,7 @@ In next example we will use `XmlBuilder` (created from SoapUtils factory) instea
168168
<?php
169169
use \Codeception\Utils\Soap;
170170
171-
$I = new ApiGuy($scenario);
171+
$I = new ApiTester($scenario);
172172
$I->wantTo('create user');
173173
$I->haveSoapHeader('Session', array('token' => '123456'));
174174
$I->sendSoapRequest('CreateUser', Soap::request()

0 commit comments

Comments
 (0)