comparison core/tests/Drupal/FunctionalJavascriptTests/WebDriverWebAssert.php @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children 1fec387a4317
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
1 <?php
2
3 namespace Drupal\FunctionalJavascriptTests;
4
5 /**
6 * Defines a JSWebAssert with no support for status code and header assertions.
7 */
8 class WebDriverWebAssert extends JSWebAssert {
9
10 /**
11 * The use of statusCodeEquals() is not available.
12 *
13 * @param int $code
14 * The status code.
15 */
16 public function statusCodeEquals($code) {
17 @trigger_error('Support for statusCodeEquals is to be dropped from Javascript tests. See https://www.drupal.org/node/2857562.');
18 parent::statusCodeEquals($code);
19 }
20
21 /**
22 * The use of statusCodeNotEquals() is not available.
23 *
24 * @param int $code
25 * The status code.
26 */
27 public function statusCodeNotEquals($code) {
28 @trigger_error('Support for statusCodeNotEquals is to be dropped from Javascript tests. See https://www.drupal.org/node/2857562.');
29 parent::statusCodeNotEquals($code);
30 }
31
32 /**
33 * The use of responseHeaderEquals() is not available.
34 *
35 * @param string $name
36 * The name of the header.
37 * @param string $value
38 * The value to check the header against.
39 */
40 public function responseHeaderEquals($name, $value) {
41 @trigger_error('Support for responseHeaderEquals is to be dropped from Javascript tests. See https://www.drupal.org/node/2857562.');
42 parent::responseHeaderEquals($name, $value);
43 }
44
45 /**
46 * The use of responseHeaderNotEquals() is not available.
47 *
48 * @param string $name
49 * The name of the header.
50 * @param string $value
51 * The value to check the header against.
52 */
53 public function responseHeaderNotEquals($name, $value) {
54 @trigger_error('Support for responseHeaderNotEquals is to be dropped from Javascript tests. See https://www.drupal.org/node/2857562.');
55 parent::responseHeaderNotEquals($name, $value);
56 }
57
58 }