-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathRouteConfig.php
More file actions
30 lines (25 loc) · 980 Bytes
/
RouteConfig.php
File metadata and controls
30 lines (25 loc) · 980 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
declare(strict_types=1);
namespace Shopsys\HttpSmokeTesting;
interface RouteConfig
{
/**
* Skips this route completely. Debug notes will be shown only when executing PHPUnit in verbose mode.
*
* @return $this
*/
public function skipRoute(?string $debugNote = null);
/**
* Allows you to configure default data set of a request for this route. Debug notes will be shown on test failure.
*/
public function changeDefaultRequestDataSet(
?string $debugNote = null,
): RequestDataSetConfig;
/**
* Adds a new request data set for this route and allows you to configure it. Debug notes will be shown on test failure.
*
* Changed configuration in the extra request data set will be merged with default data config overwriting it.
* Later changes to the default data set will not be discarded.
*/
public function addExtraRequestDataSet(?string $debugNote = null): RequestDataSetConfig;
}