@@ -21,11 +21,10 @@ class CurlHelpers extends Helper
21
21
* @param string $expectedString
22
22
* @return void
23
23
*
24
- * @throws \Magento\Framework\Exception\FileSystemException
25
24
*/
26
25
public function assertCurlResponseContainsString ($ url , $ expectedString ): void
27
26
{
28
- $ cookie = $ this ->getCookie ();
27
+ $ cookie = $ this ->getCookie (' admin ' );
29
28
$ curlResponse = $ this ->getCurlResponse ($ url , $ cookie );
30
29
$ this ->assertStringContainsString ($ expectedString , $ curlResponse );
31
30
}
@@ -37,7 +36,6 @@ public function assertCurlResponseContainsString($url, $expectedString): void
37
36
* @param string $cookie
38
37
* @return string
39
38
*
40
- * @throws \Magento\Framework\Exception\FileSystemException
41
39
*/
42
40
public function getCurlResponse ($ url , $ cookie ): string
43
41
{
@@ -47,7 +45,6 @@ public function getCurlResponse($url, $cookie): string
47
45
48
46
// Set Options
49
47
curl_setopt ($ session , CURLOPT_COOKIE , $ cookie );
50
- // curl_setopt($session, CURLOPT_POST, true);
51
48
curl_setopt ($ session , CURLOPT_HEADER , false );
52
49
curl_setopt ($ session , CURLOPT_RETURNTRANSFER , true );
53
50
curl_setopt ($ session , CURLOPT_FOLLOWLOCATION , true );
@@ -65,9 +62,9 @@ public function getCurlResponse($url, $cookie): string
65
62
/**
66
63
* Gets the value of the specified cookie and returns the key value pair of the cookie
67
64
*
65
+ * @param string $cookieName
68
66
* @return string
69
67
*
70
- * @throws \Magento\Framework\Exception\FileSystemException
71
68
*/
72
69
public function getCookie ($ cookieName = 'admin ' ): string
73
70
{
0 commit comments