Commit 20ed813 1 parent 56f5f9e commit 20ed813 Copy full SHA for 20ed813
File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 25
25
use Mcustiel \Phiremock \Client \Phiremock as PhiremockClient ;
26
26
use Mcustiel \Phiremock \Client \Utils \RequestBuilder ;
27
27
use Mcustiel \Phiremock \Domain \Expectation ;
28
+ use Mcustiel \Phiremock \Domain \ScenarioState ;
28
29
29
30
class Phiremock extends CodeceptionModule
30
31
{
@@ -122,4 +123,14 @@ public function grabRequestsMadeToRemoteService(RequestBuilder $builder)
122
123
{
123
124
return $ this ->phiremock ->listExecutions ($ builder );
124
125
}
126
+
127
+ /**
128
+ * @param string $name
129
+ * @param string $state
130
+ */
131
+ public function setScenarioState ($ name , $ state )
132
+ {
133
+ $ scenarioState = new ScenarioState ($ name , $ state );
134
+ $ this ->phiremock ->setScenarioState ($ scenarioState );
135
+ }
125
136
}
You can’t perform that action at this time.
0 commit comments