Issues (398)

Security Analysis    not enabled

This project does not seem to handle request data directly as such no vulnerable execution paths were found.

  Cross-Site Scripting
Cross-Site Scripting enables an attacker to inject code into the response of a web-request that is viewed by other users. It can for example be used to bypass access controls, or even to take over other users' accounts.
  File Exposure
File Exposure allows an attacker to gain access to local files that he should not be able to access. These files can for example include database credentials, or other configuration files.
  File Manipulation
File Manipulation enables an attacker to write custom data to files. This potentially leads to injection of arbitrary code on the server.
  Object Injection
Object Injection enables an attacker to inject an object into PHP code, and can lead to arbitrary code execution, file exposure, or file manipulation attacks.
  Code Injection
Code Injection enables an attacker to execute arbitrary code on the server.
  Response Splitting
Response Splitting can be used to send arbitrary responses.
  File Inclusion
File Inclusion enables an attacker to inject custom files into PHP's file loading mechanism, either explicitly passed to include, or for example via PHP's auto-loading mechanism.
  Command Injection
Command Injection enables an attacker to inject a shell command that is execute with the privileges of the web-server. This can be used to expose sensitive data, or gain access of your server.
  SQL Injection
SQL Injection enables an attacker to execute arbitrary SQL code on your database server gaining access to user data, or manipulating user data.
  XPath Injection
XPath Injection enables an attacker to modify the parts of XML document that are read. If that XML document is for example used for authentication, this can lead to further vulnerabilities similar to SQL Injection.
  LDAP Injection
LDAP Injection enables an attacker to inject LDAP statements potentially granting permission to run unauthorized queries, or modify content inside the LDAP tree.
  Header Injection
  Other Vulnerability
This category comprises other attack vectors such as manipulating the PHP runtime, loading custom extensions, freezing the runtime, or similar.
  Regex Injection
Regex Injection enables an attacker to execute arbitrary code in your PHP process.
  XML Injection
XML Injection enables an attacker to read files on your local filesystem including configuration files, or can be abused to freeze your web-server process.
  Variable Injection
Variable Injection enables an attacker to overwrite program variables with custom data, and can lead to further vulnerabilities.
Unfortunately, the security analysis is currently not available for your project. If you are a non-commercial open-source project, please contact support to gain access.

_support/_generated/AcceptanceTesterActions.php (191 issues)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php  //[STAMP] 233a9b0c7a85ffaef9b98a2f66ed6b9a
2
namespace hipanel\modules\hosting\tests\_support\_generated;
3
4
// This class was automatically generated by build task
5
// You should not change it manually as it will be overwritten on next build
6
// @codingStandardsIgnoreFile
7
8
trait AcceptanceTesterActions
9
{
10
    /**
11
     * @return \Codeception\Scenario
12
     */
13
    abstract protected function getScenario();
14
15
    
16
    /**
17
     * [!] Method is generated. Documentation taken from corresponding module.
18
     *
19
     * Print out latest Selenium Logs in debug mode
20
     *
21
     * @param TestInterface $test
22
     * @see \Codeception\Module\WebDriver::debugWebDriverLogs()
23
     */
24
    public function debugWebDriverLogs($test = null) {
0 ignored issues
show
The parameter $test is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
25
        return $this->getScenario()->runStep(new \Codeception\Step\Action('debugWebDriverLogs', func_get_args()));
26
    }
27
28
 
29
    /**
30
     * [!] Method is generated. Documentation taken from corresponding module.
31
     *
32
     * Changes the subdomain for the 'url' configuration parameter.
33
     * Does not open a page; use `amOnPage` for that.
34
     *
35
     * ``` php
36
     * <?php
37
     * // If config is: 'http://mysite.com'
38
     * // or config is: 'http://www.mysite.com'
39
     * // or config is: 'http://company.mysite.com'
40
     *
41
     * $I->amOnSubdomain('user');
42
     * $I->amOnPage('/');
43
     * // moves to http://user.mysite.com/
44
     * ?>
45
     * ```
46
     *
47
     * @param $subdomain
48
     *
49
     * @return mixed
50
     * @see \Codeception\Module\WebDriver::amOnSubdomain()
51
     */
52
    public function amOnSubdomain($subdomain) {
0 ignored issues
show
The parameter $subdomain is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
53
        return $this->getScenario()->runStep(new \Codeception\Step\Condition('amOnSubdomain', func_get_args()));
54
    }
55
56
 
57
    /**
58
     * [!] Method is generated. Documentation taken from corresponding module.
59
     *
60
     * Takes a screenshot of the current window and saves it to `tests/_output/debug`.
61
     *
62
     * ``` php
63
     * <?php
64
     * $I->amOnPage('/user/edit');
65
     * $I->makeScreenshot('edit_page');
66
     * // saved to: tests/_output/debug/edit_page.png
67
     * $I->makeScreenshot();
68
     * // saved to: tests/_output/debug/2017-05-26_14-24-11_4b3403665fea6.png
69
     * ```
70
     *
71
     * @param $name
72
     * @see \Codeception\Module\WebDriver::makeScreenshot()
73
     */
74
    public function makeScreenshot($name = null) {
0 ignored issues
show
The parameter $name is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
75
        return $this->getScenario()->runStep(new \Codeception\Step\Action('makeScreenshot', func_get_args()));
76
    }
77
78
 
79
    /**
80
     * [!] Method is generated. Documentation taken from corresponding module.
81
     *
82
     * Resize the current window.
83
     *
84
     * ``` php
85
     * <?php
86
     * $I->resizeWindow(800, 600);
87
     *
88
     * ```
89
     *
90
     * @param int $width
91
     * @param int $height
92
     * @see \Codeception\Module\WebDriver::resizeWindow()
93
     */
94
    public function resizeWindow($width, $height) {
0 ignored issues
show
The parameter $width is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
The parameter $height is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
95
        return $this->getScenario()->runStep(new \Codeception\Step\Action('resizeWindow', func_get_args()));
96
    }
97
98
 
99
    /**
100
     * [!] Method is generated. Documentation taken from corresponding module.
101
     *
102
     * Checks that a cookie with the given name is set.
103
     * You can set additional cookie params like `domain`, `path` as array passed in last argument.
104
     *
105
     * ``` php
106
     * <?php
107
     * $I->seeCookie('PHPSESSID');
108
     * ?>
109
     * ```
110
     *
111
     * @param $cookie
112
     * @param array $params
113
     * @return mixed
114
     * Conditional Assertion: Test won't be stopped on fail
115
     * @see \Codeception\Module\WebDriver::seeCookie()
116
     */
117
    public function canSeeCookie($cookie, $params = null) {
0 ignored issues
show
The parameter $cookie is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
The parameter $params is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
118
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeCookie', func_get_args()));
119
    }
120
    /**
121
     * [!] Method is generated. Documentation taken from corresponding module.
122
     *
123
     * Checks that a cookie with the given name is set.
124
     * You can set additional cookie params like `domain`, `path` as array passed in last argument.
125
     *
126
     * ``` php
127
     * <?php
128
     * $I->seeCookie('PHPSESSID');
129
     * ?>
130
     * ```
131
     *
132
     * @param $cookie
133
     * @param array $params
134
     * @return mixed
135
     * @see \Codeception\Module\WebDriver::seeCookie()
136
     */
137
    public function seeCookie($cookie, $params = null) {
0 ignored issues
show
The parameter $cookie is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
The parameter $params is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
138
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeCookie', func_get_args()));
139
    }
140
141
 
142
    /**
143
     * [!] Method is generated. Documentation taken from corresponding module.
144
     *
145
     * Checks that there isn't a cookie with the given name.
146
     * You can set additional cookie params like `domain`, `path` as array passed in last argument.
147
     *
148
     * @param $cookie
149
     *
150
     * @param array $params
151
     * @return mixed
152
     * Conditional Assertion: Test won't be stopped on fail
153
     * @see \Codeception\Module\WebDriver::dontSeeCookie()
154
     */
155
    public function cantSeeCookie($cookie, $params = null) {
0 ignored issues
show
The parameter $cookie is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
The parameter $params is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
156
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeCookie', func_get_args()));
157
    }
158
    /**
159
     * [!] Method is generated. Documentation taken from corresponding module.
160
     *
161
     * Checks that there isn't a cookie with the given name.
162
     * You can set additional cookie params like `domain`, `path` as array passed in last argument.
163
     *
164
     * @param $cookie
165
     *
166
     * @param array $params
167
     * @return mixed
168
     * @see \Codeception\Module\WebDriver::dontSeeCookie()
169
     */
170
    public function dontSeeCookie($cookie, $params = null) {
0 ignored issues
show
The parameter $cookie is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
The parameter $params is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
171
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeCookie', func_get_args()));
172
    }
173
174
 
175
    /**
176
     * [!] Method is generated. Documentation taken from corresponding module.
177
     *
178
     * Sets a cookie with the given name and value.
179
     * You can set additional cookie params like `domain`, `path`, `expires`, `secure` in array passed as last argument.
180
     *
181
     * ``` php
182
     * <?php
183
     * $I->setCookie('PHPSESSID', 'el4ukv0kqbvoirg7nkp4dncpk3');
184
     * ?>
185
     * ```
186
     *
187
     * @param $name
188
     * @param $val
189
     * @param array $params
190
     *
191
     * @return mixed
192
     * @see \Codeception\Module\WebDriver::setCookie()
193
     */
194
    public function setCookie($cookie, $value, $params = null) {
0 ignored issues
show
The parameter $cookie is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
The parameter $value is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
The parameter $params is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
195
        return $this->getScenario()->runStep(new \Codeception\Step\Action('setCookie', func_get_args()));
196
    }
197
198
 
199
    /**
200
     * [!] Method is generated. Documentation taken from corresponding module.
201
     *
202
     * Unsets cookie with the given name.
203
     * You can set additional cookie params like `domain`, `path` in array passed as last argument.
204
     *
205
     * @param $cookie
206
     *
207
     * @param array $params
208
     * @return mixed
209
     * @see \Codeception\Module\WebDriver::resetCookie()
210
     */
211
    public function resetCookie($cookie, $params = null) {
0 ignored issues
show
The parameter $cookie is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
The parameter $params is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
212
        return $this->getScenario()->runStep(new \Codeception\Step\Action('resetCookie', func_get_args()));
213
    }
214
215
 
216
    /**
217
     * [!] Method is generated. Documentation taken from corresponding module.
218
     *
219
     * Grabs a cookie value.
220
     * You can set additional cookie params like `domain`, `path` in array passed as last argument.
221
     *
222
     * @param $cookie
223
     *
224
     * @param array $params
225
     * @return mixed
226
     * @see \Codeception\Module\WebDriver::grabCookie()
227
     */
228
    public function grabCookie($cookie, $params = null) {
0 ignored issues
show
The parameter $cookie is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
The parameter $params is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
229
        return $this->getScenario()->runStep(new \Codeception\Step\Action('grabCookie', func_get_args()));
230
    }
231
232
 
233
    /**
234
     * [!] Method is generated. Documentation taken from corresponding module.
235
     *
236
     * Grabs current page source code.
237
     *
238
     * @throws ModuleException if no page was opened.
239
     *
240
     * @return string Current page source code.
241
     * @see \Codeception\Module\WebDriver::grabPageSource()
242
     */
243
    public function grabPageSource() {
244
        return $this->getScenario()->runStep(new \Codeception\Step\Action('grabPageSource', func_get_args()));
245
    }
246
247
 
248
    /**
249
     * [!] Method is generated. Documentation taken from corresponding module.
250
     *
251
     * Open web page at the given absolute URL and sets its hostname as the base host.
252
     *
253
     * ``` php
254
     * <?php
255
     * $I->amOnUrl('http://codeception.com');
256
     * $I->amOnPage('/quickstart'); // moves to http://codeception.com/quickstart
257
     * ?>
258
     * ```
259
     * @see \Codeception\Module\WebDriver::amOnUrl()
260
     */
261
    public function amOnUrl($url) {
0 ignored issues
show
The parameter $url is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
262
        return $this->getScenario()->runStep(new \Codeception\Step\Condition('amOnUrl', func_get_args()));
263
    }
264
265
 
266
    /**
267
     * [!] Method is generated. Documentation taken from corresponding module.
268
     *
269
     * Opens the page for the given relative URI.
270
     *
271
     * ``` php
272
     * <?php
273
     * // opens front page
274
     * $I->amOnPage('/');
275
     * // opens /register page
276
     * $I->amOnPage('/register');
277
     * ```
278
     *
279
     * @param string $page
280
     * @see \Codeception\Module\WebDriver::amOnPage()
281
     */
282
    public function amOnPage($page) {
0 ignored issues
show
The parameter $page is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
283
        return $this->getScenario()->runStep(new \Codeception\Step\Condition('amOnPage', func_get_args()));
284
    }
285
286
 
287
    /**
288
     * [!] Method is generated. Documentation taken from corresponding module.
289
     *
290
     * Checks that the current page contains the given string (case insensitive).
291
     *
292
     * You can specify a specific HTML element (via CSS or XPath) as the second
293
     * parameter to only search within that element.
294
     *
295
     * ``` php
296
     * <?php
297
     * $I->see('Logout');                        // I can suppose user is logged in
298
     * $I->see('Sign Up', 'h1');                 // I can suppose it's a signup page
299
     * $I->see('Sign Up', '//body/h1');          // with XPath
300
     * $I->see('Sign Up', ['css' => 'body h1']); // with strict CSS locator
301
     * ```
302
     *
303
     * Note that the search is done after stripping all HTML tags from the body,
304
     * so `$I->see('strong')` will return true for strings like:
305
     *
306
     *   - `<p>I am Stronger than thou</p>`
307
     *   - `<script>document.createElement('strong');</script>`
308
     *
309
     * But will *not* be true for strings like:
310
     *
311
     *   - `<strong>Home</strong>`
312
     *   - `<div class="strong">Home</strong>`
313
     *   - `<!-- strong -->`
314
     *
315
     * For checking the raw source code, use `seeInSource()`.
316
     *
317
     * @param string $text
318
     * @param string $selector optional
319
     * Conditional Assertion: Test won't be stopped on fail
320
     * @see \Codeception\Module\WebDriver::see()
321
     */
322
    public function canSee($text, $selector = null) {
0 ignored issues
show
The parameter $text is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
The parameter $selector is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
323
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('see', func_get_args()));
324
    }
325
    /**
326
     * [!] Method is generated. Documentation taken from corresponding module.
327
     *
328
     * Checks that the current page contains the given string (case insensitive).
329
     *
330
     * You can specify a specific HTML element (via CSS or XPath) as the second
331
     * parameter to only search within that element.
332
     *
333
     * ``` php
334
     * <?php
335
     * $I->see('Logout');                        // I can suppose user is logged in
336
     * $I->see('Sign Up', 'h1');                 // I can suppose it's a signup page
337
     * $I->see('Sign Up', '//body/h1');          // with XPath
338
     * $I->see('Sign Up', ['css' => 'body h1']); // with strict CSS locator
339
     * ```
340
     *
341
     * Note that the search is done after stripping all HTML tags from the body,
342
     * so `$I->see('strong')` will return true for strings like:
343
     *
344
     *   - `<p>I am Stronger than thou</p>`
345
     *   - `<script>document.createElement('strong');</script>`
346
     *
347
     * But will *not* be true for strings like:
348
     *
349
     *   - `<strong>Home</strong>`
350
     *   - `<div class="strong">Home</strong>`
351
     *   - `<!-- strong -->`
352
     *
353
     * For checking the raw source code, use `seeInSource()`.
354
     *
355
     * @param string $text
356
     * @param string $selector optional
357
     * @see \Codeception\Module\WebDriver::see()
358
     */
359
    public function see($text, $selector = null) {
0 ignored issues
show
The parameter $text is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
The parameter $selector is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
360
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('see', func_get_args()));
361
    }
362
363
 
364
    /**
365
     * [!] Method is generated. Documentation taken from corresponding module.
366
     *
367
     * Checks that the current page doesn't contain the text specified (case insensitive).
368
     * Give a locator as the second parameter to match a specific region.
369
     *
370
     * ```php
371
     * <?php
372
     * $I->dontSee('Login');                         // I can suppose user is already logged in
373
     * $I->dontSee('Sign Up','h1');                  // I can suppose it's not a signup page
374
     * $I->dontSee('Sign Up','//body/h1');           // with XPath
375
     * $I->dontSee('Sign Up', ['css' => 'body h1']); // with strict CSS locator
376
     * ```
377
     *
378
     * Note that the search is done after stripping all HTML tags from the body,
379
     * so `$I->dontSee('strong')` will fail on strings like:
380
     *
381
     *   - `<p>I am Stronger than thou</p>`
382
     *   - `<script>document.createElement('strong');</script>`
383
     *
384
     * But will ignore strings like:
385
     *
386
     *   - `<strong>Home</strong>`
387
     *   - `<div class="strong">Home</strong>`
388
     *   - `<!-- strong -->`
389
     *
390
     * For checking the raw source code, use `seeInSource()`.
391
     *
392
     * @param string $text
393
     * @param string $selector optional
394
     * Conditional Assertion: Test won't be stopped on fail
395
     * @see \Codeception\Module\WebDriver::dontSee()
396
     */
397
    public function cantSee($text, $selector = null) {
0 ignored issues
show
The parameter $text is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
The parameter $selector is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
398
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSee', func_get_args()));
399
    }
400
    /**
401
     * [!] Method is generated. Documentation taken from corresponding module.
402
     *
403
     * Checks that the current page doesn't contain the text specified (case insensitive).
404
     * Give a locator as the second parameter to match a specific region.
405
     *
406
     * ```php
407
     * <?php
408
     * $I->dontSee('Login');                         // I can suppose user is already logged in
409
     * $I->dontSee('Sign Up','h1');                  // I can suppose it's not a signup page
410
     * $I->dontSee('Sign Up','//body/h1');           // with XPath
411
     * $I->dontSee('Sign Up', ['css' => 'body h1']); // with strict CSS locator
412
     * ```
413
     *
414
     * Note that the search is done after stripping all HTML tags from the body,
415
     * so `$I->dontSee('strong')` will fail on strings like:
416
     *
417
     *   - `<p>I am Stronger than thou</p>`
418
     *   - `<script>document.createElement('strong');</script>`
419
     *
420
     * But will ignore strings like:
421
     *
422
     *   - `<strong>Home</strong>`
423
     *   - `<div class="strong">Home</strong>`
424
     *   - `<!-- strong -->`
425
     *
426
     * For checking the raw source code, use `seeInSource()`.
427
     *
428
     * @param string $text
429
     * @param string $selector optional
430
     * @see \Codeception\Module\WebDriver::dontSee()
431
     */
432
    public function dontSee($text, $selector = null) {
0 ignored issues
show
The parameter $text is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
The parameter $selector is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
433
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSee', func_get_args()));
434
    }
435
436
 
437
    /**
438
     * [!] Method is generated. Documentation taken from corresponding module.
439
     *
440
     * Checks that the current page contains the given string in its
441
     * raw source code.
442
     *
443
     * ``` php
444
     * <?php
445
     * $I->seeInSource('<h1>Green eggs &amp; ham</h1>');
446
     * ```
447
     *
448
     * @param      $raw
449
     * Conditional Assertion: Test won't be stopped on fail
450
     * @see \Codeception\Module\WebDriver::seeInSource()
451
     */
452
    public function canSeeInSource($raw) {
0 ignored issues
show
The parameter $raw is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
453
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeInSource', func_get_args()));
454
    }
455
    /**
456
     * [!] Method is generated. Documentation taken from corresponding module.
457
     *
458
     * Checks that the current page contains the given string in its
459
     * raw source code.
460
     *
461
     * ``` php
462
     * <?php
463
     * $I->seeInSource('<h1>Green eggs &amp; ham</h1>');
464
     * ```
465
     *
466
     * @param      $raw
467
     * @see \Codeception\Module\WebDriver::seeInSource()
468
     */
469
    public function seeInSource($raw) {
0 ignored issues
show
The parameter $raw is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
470
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInSource', func_get_args()));
471
    }
472
473
 
474
    /**
475
     * [!] Method is generated. Documentation taken from corresponding module.
476
     *
477
     * Checks that the current page contains the given string in its
478
     * raw source code.
479
     *
480
     * ```php
481
     * <?php
482
     * $I->dontSeeInSource('<h1>Green eggs &amp; ham</h1>');
483
     * ```
484
     *
485
     * @param      $raw
486
     * Conditional Assertion: Test won't be stopped on fail
487
     * @see \Codeception\Module\WebDriver::dontSeeInSource()
488
     */
489
    public function cantSeeInSource($raw) {
0 ignored issues
show
The parameter $raw is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
490
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeInSource', func_get_args()));
491
    }
492
    /**
493
     * [!] Method is generated. Documentation taken from corresponding module.
494
     *
495
     * Checks that the current page contains the given string in its
496
     * raw source code.
497
     *
498
     * ```php
499
     * <?php
500
     * $I->dontSeeInSource('<h1>Green eggs &amp; ham</h1>');
501
     * ```
502
     *
503
     * @param      $raw
504
     * @see \Codeception\Module\WebDriver::dontSeeInSource()
505
     */
506
    public function dontSeeInSource($raw) {
0 ignored issues
show
The parameter $raw is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
507
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeInSource', func_get_args()));
508
    }
509
510
 
511
    /**
512
     * [!] Method is generated. Documentation taken from corresponding module.
513
     *
514
     * Checks that the page source contains the given string.
515
     *
516
     * ```php
517
     * <?php
518
     * $I->seeInPageSource('<link rel="apple-touch-icon"');
519
     * ```
520
     *
521
     * @param $text
522
     * Conditional Assertion: Test won't be stopped on fail
523
     * @see \Codeception\Module\WebDriver::seeInPageSource()
524
     */
525
    public function canSeeInPageSource($text) {
0 ignored issues
show
The parameter $text is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
526
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeInPageSource', func_get_args()));
527
    }
528
    /**
529
     * [!] Method is generated. Documentation taken from corresponding module.
530
     *
531
     * Checks that the page source contains the given string.
532
     *
533
     * ```php
534
     * <?php
535
     * $I->seeInPageSource('<link rel="apple-touch-icon"');
536
     * ```
537
     *
538
     * @param $text
539
     * @see \Codeception\Module\WebDriver::seeInPageSource()
540
     */
541
    public function seeInPageSource($text) {
0 ignored issues
show
The parameter $text is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
542
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInPageSource', func_get_args()));
543
    }
544
545
 
546
    /**
547
     * [!] Method is generated. Documentation taken from corresponding module.
548
     *
549
     * Checks that the page source doesn't contain the given string.
550
     *
551
     * @param $text
552
     * Conditional Assertion: Test won't be stopped on fail
553
     * @see \Codeception\Module\WebDriver::dontSeeInPageSource()
554
     */
555
    public function cantSeeInPageSource($text) {
0 ignored issues
show
The parameter $text is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
556
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeInPageSource', func_get_args()));
557
    }
558
    /**
559
     * [!] Method is generated. Documentation taken from corresponding module.
560
     *
561
     * Checks that the page source doesn't contain the given string.
562
     *
563
     * @param $text
564
     * @see \Codeception\Module\WebDriver::dontSeeInPageSource()
565
     */
566
    public function dontSeeInPageSource($text) {
0 ignored issues
show
The parameter $text is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
567
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeInPageSource', func_get_args()));
568
    }
569
570
 
571
    /**
572
     * [!] Method is generated. Documentation taken from corresponding module.
573
     *
574
     * Perform a click on a link or a button, given by a locator.
575
     * If a fuzzy locator is given, the page will be searched for a button, link, or image matching the locator string.
576
     * For buttons, the "value" attribute, "name" attribute, and inner text are searched.
577
     * For links, the link text is searched.
578
     * For images, the "alt" attribute and inner text of any parent links are searched.
579
     *
580
     * The second parameter is a context (CSS or XPath locator) to narrow the search.
581
     *
582
     * Note that if the locator matches a button of type `submit`, the form will be submitted.
583
     *
584
     * ``` php
585
     * <?php
586
     * // simple link
587
     * $I->click('Logout');
588
     * // button of form
589
     * $I->click('Submit');
590
     * // CSS button
591
     * $I->click('#form input[type=submit]');
592
     * // XPath
593
     * $I->click('//form/*[@type=submit]');
594
     * // link in context
595
     * $I->click('Logout', '#nav');
596
     * // using strict locator
597
     * $I->click(['link' => 'Login']);
598
     * ?>
599
     * ```
600
     *
601
     * @param $link
602
     * @param $context
603
     * @see \Codeception\Module\WebDriver::click()
604
     */
605
    public function click($link, $context = null) {
0 ignored issues
show
The parameter $link is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
The parameter $context is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
606
        return $this->getScenario()->runStep(new \Codeception\Step\Action('click', func_get_args()));
607
    }
608
609
 
610
    /**
611
     * [!] Method is generated. Documentation taken from corresponding module.
612
     *
613
     * Checks that there's a link with the specified text.
614
     * Give a full URL as the second parameter to match links with that exact URL.
615
     *
616
     * ``` php
617
     * <?php
618
     * $I->seeLink('Logout'); // matches <a href="#">Logout</a>
619
     * $I->seeLink('Logout','/logout'); // matches <a href="/logout">Logout</a>
620
     * ?>
621
     * ```
622
     *
623
     * @param string $text
624
     * @param string $url optional
625
     * Conditional Assertion: Test won't be stopped on fail
626
     * @see \Codeception\Module\WebDriver::seeLink()
627
     */
628
    public function canSeeLink($text, $url = null) {
0 ignored issues
show
The parameter $text is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
The parameter $url is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
629
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeLink', func_get_args()));
630
    }
631
    /**
632
     * [!] Method is generated. Documentation taken from corresponding module.
633
     *
634
     * Checks that there's a link with the specified text.
635
     * Give a full URL as the second parameter to match links with that exact URL.
636
     *
637
     * ``` php
638
     * <?php
639
     * $I->seeLink('Logout'); // matches <a href="#">Logout</a>
640
     * $I->seeLink('Logout','/logout'); // matches <a href="/logout">Logout</a>
641
     * ?>
642
     * ```
643
     *
644
     * @param string $text
645
     * @param string $url optional
646
     * @see \Codeception\Module\WebDriver::seeLink()
647
     */
648
    public function seeLink($text, $url = null) {
0 ignored issues
show
The parameter $text is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
The parameter $url is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
649
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeLink', func_get_args()));
650
    }
651
652
 
653
    /**
654
     * [!] Method is generated. Documentation taken from corresponding module.
655
     *
656
     * Checks that the page doesn't contain a link with the given string.
657
     * If the second parameter is given, only links with a matching "href" attribute will be checked.
658
     *
659
     * ``` php
660
     * <?php
661
     * $I->dontSeeLink('Logout'); // I suppose user is not logged in
662
     * $I->dontSeeLink('Checkout now', '/store/cart.php');
663
     * ?>
664
     * ```
665
     *
666
     * @param string $text
667
     * @param string $url optional
668
     * Conditional Assertion: Test won't be stopped on fail
669
     * @see \Codeception\Module\WebDriver::dontSeeLink()
670
     */
671
    public function cantSeeLink($text, $url = null) {
0 ignored issues
show
The parameter $text is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
The parameter $url is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
672
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('dontSeeLink', func_get_args()));
673
    }
674
    /**
675
     * [!] Method is generated. Documentation taken from corresponding module.
676
     *
677
     * Checks that the page doesn't contain a link with the given string.
678
     * If the second parameter is given, only links with a matching "href" attribute will be checked.
679
     *
680
     * ``` php
681
     * <?php
682
     * $I->dontSeeLink('Logout'); // I suppose user is not logged in
683
     * $I->dontSeeLink('Checkout now', '/store/cart.php');
684
     * ?>
685
     * ```
686
     *
687
     * @param string $text
688
     * @param string $url optional
689
     * @see \Codeception\Module\WebDriver::dontSeeLink()
690
     */
691
    public function dontSeeLink($text, $url = null) {
0 ignored issues
show
The parameter $text is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
The parameter $url is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
692
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('dontSeeLink', func_get_args()));
693
    }
694
695
 
696
    /**
697
     * [!] Method is generated. Documentation taken from corresponding module.
698
     *
699
     * Checks that current URI contains the given string.
700
     *
701
     * ``` php
702
     * <?php
703
     * // to match: /home/dashboard
704
     * $I->seeInCurrentUrl('home');
705
     * // to match: /users/1
706
     * $I->seeInCurrentUrl('/users/');
707
     * ?>
708
     * ```
709
     *
710
     * @param string $uri
711
     * Conditional Assertion: Test won't be stopped on fail
712
     * @see \Codeception\Module\WebDriver::seeInCurrentUrl()
713
     */
714
    public function canSeeInCurrentUrl($uri) {
0 ignored issues
show
The parameter $uri is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
715
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeInCurrentUrl', func_get_args()));
716
    }
717
    /**
718
     * [!] Method is generated. Documentation taken from corresponding module.
719
     *
720
     * Checks that current URI contains the given string.
721
     *
722
     * ``` php
723
     * <?php
724
     * // to match: /home/dashboard
725
     * $I->seeInCurrentUrl('home');
726
     * // to match: /users/1
727
     * $I->seeInCurrentUrl('/users/');
728
     * ?>
729
     * ```
730
     *
731
     * @param string $uri
732
     * @see \Codeception\Module\WebDriver::seeInCurrentUrl()
733
     */
734
    public function seeInCurrentUrl($uri) {
0 ignored issues
show
The parameter $uri is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
735
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeInCurrentUrl', func_get_args()));
736
    }
737
738
 
739
    /**
740
     * [!] Method is generated. Documentation taken from corresponding module.
741
     *
742
     * Checks that the current URL is equal to the given string.
743
     * Unlike `seeInCurrentUrl`, this only matches the full URL.
744
     *
745
     * ``` php
746
     * <?php
747
     * // to match root url
748
     * $I->seeCurrentUrlEquals('/');
749
     * ?>
750
     * ```
751
     *
752
     * @param string $uri
753
     * Conditional Assertion: Test won't be stopped on fail
754
     * @see \Codeception\Module\WebDriver::seeCurrentUrlEquals()
755
     */
756
    public function canSeeCurrentUrlEquals($uri) {
0 ignored issues
show
The parameter $uri is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
757
        return $this->getScenario()->runStep(new \Codeception\Step\ConditionalAssertion('seeCurrentUrlEquals', func_get_args()));
758
    }
759
    /**
760
     * [!] Method is generated. Documentation taken from corresponding module.
761
     *
762
     * Checks that the current URL is equal to the given string.
763
     * Unlike `seeInCurrentUrl`, this only matches the full URL.
764
     *
765
     * ``` php
766
     * <?php
767
     * // to match root url
768
     * $I->seeCurrentUrlEquals('/');
769
     * ?>
770
     * ```
771
     *
772
     * @param string $uri
773
     * @see \Codeception\Module\WebDriver::seeCurrentUrlEquals()
774
     */
775
    public function seeCurrentUrlEquals($uri) {
0 ignored issues
show
The parameter $uri is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
776
        return $this->getScenario()->runStep(new \Codeception\Step\Assertion('seeCurrentUrlEquals', func_get_args()));
777
    }
778
779
 
780
    /**
781
     * [!] Method is generated. Documentation taken from corresponding module.
782
     *
783
     * Checks that the current URL matches the given regular expression.
784
     *
785
     * ``` php
786
     * <?php
787
     * // to match root url