Skip to content

Commit

Permalink
CC-31953 Add missing part
Browse files Browse the repository at this point in the history
  • Loading branch information
AsonUnique committed Dec 27, 2023
1 parent 5522d00 commit 3f05079
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,38 @@ Run the following Codeception build command:
docker/sdk testing codecept build -c tests/PyzTest/Glue/Wishlists
```
Adjust generated actor class so it extends `\SprykerTest\Glue\Testify\Tester\ApiEndToEndTester`:
**tests/PyzTest/Glue/Wishlists/_support/WishlistsApiTester.php**
```php
<?php
namespace PyzTest\Glue\Wishlists;
use SprykerTest\Glue\Testify\Tester\ApiEndToEndTester;
/**
* Inherited Methods
*
* @method void wantToTest($text)
* @method void wantTo($text)
* @method void execute($callable)
* @method void expectTo($prediction)
* @method void expect($prediction)
* @method void amGoingTo($argumentation)
* @method void am($role)
* @method void lookForwardTo($achieveValue)
* @method void comment($description)
* @method void pause()
*/
class WishlistsApiTester extends ApiEndToEndTester
{
use _generated\WishlistsApiTesterActions;
}
```
#### 3. Create fixtures
Introduce the fixtures class which will generated all data required for tests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,38 @@ Run the following Codeception build command:
docker/sdk testing codecept build -c tests/PyzTest/Glue/ModuleBackend
```
Adjust generated actor class so it extends `\SprykerTest\Glue\Testify\Tester\BackendApiEndToEndTester`:
**tests/PyzTest/Glue/ModuleBackend/_support/ModuleBackendApiTester.php**
```php
<?php
namespace PyzTest\Glue\ModuleBackend;
use SprykerTest\Glue\Testify\Tester\BackendApiEndToEndTester;
/**
* Inherited Methods
*
* @method void wantToTest($text)
* @method void wantTo($text)
* @method void execute($callable)
* @method void expectTo($prediction)
* @method void expect($prediction)
* @method void amGoingTo($argumentation)
* @method void am($role)
* @method void lookForwardTo($achieveValue)
* @method void comment($description)
* @method void pause()
*/
class ModuleBackendApiTester extends BackendApiEndToEndTester
{
use _generated\ModuleBackendApiTesterActions;
}
```
#### 3. Create fixtures
1. Introduce the fixtures class which will generated all data required for tests
Expand Down

0 comments on commit 3f05079

Please sign in to comment.