File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change 1818namespace Codeception \Module ;
1919
2020use Codeception \Module as CodeceptionModule ;
21- use Codeception \TestCase ;
2221use Codeception \Util \Debug ;
2322use WireMock \Client \WireMock as WireMockClient ;
2423use WireMock \Client \MappingBuilder ;
@@ -49,6 +48,9 @@ public function _beforeSuite($settings = [])
4948 $ this ->wireMock = WireMockClient::create ($ this ->config ['host ' ], $ this ->config ['port ' ]);
5049 }
5150
51+ /**
52+ * @deprecated use resetMappingsAndRequestJournalInWireMock() instead
53+ */
5254 public function cleanAllPreviousRequestsToWireMock ()
5355 {
5456 $ this ->wireMock ->reset ();
@@ -79,4 +81,19 @@ public function findReceivedRequestsToWireMock(RequestPatternBuilder $builder)
7981 {
8082 return $ this ->wireMock ->findAll ($ builder );
8183 }
84+
85+ public function resetMappingsAndRequestJournalInWireMock ()
86+ {
87+ $ this ->wireMock ->reset ();
88+ }
89+
90+ public function resetRequestJournalInWireMock ()
91+ {
92+ $ this ->wireMock ->resetAllRequests ();
93+ }
94+
95+ public function resetMappingsInWireMock ()
96+ {
97+ $ this ->wireMock ->resetToDefault ();
98+ }
8299}
You can’t perform that action at this time.
0 commit comments