Chris@0
|
1 <?php
|
Chris@0
|
2
|
Chris@0
|
3 namespace Drupal\FunctionalJavascriptTests;
|
Chris@0
|
4
|
Chris@0
|
5 /**
|
Chris@0
|
6 * Defines a JSWebAssert with no support for status code and header assertions.
|
Chris@0
|
7 */
|
Chris@0
|
8 class WebDriverWebAssert extends JSWebAssert {
|
Chris@0
|
9
|
Chris@0
|
10 /**
|
Chris@0
|
11 * The use of statusCodeEquals() is not available.
|
Chris@0
|
12 *
|
Chris@0
|
13 * @param int $code
|
Chris@0
|
14 * The status code.
|
Chris@0
|
15 */
|
Chris@0
|
16 public function statusCodeEquals($code) {
|
Chris@0
|
17 @trigger_error('Support for statusCodeEquals is to be dropped from Javascript tests. See https://www.drupal.org/node/2857562.');
|
Chris@0
|
18 parent::statusCodeEquals($code);
|
Chris@0
|
19 }
|
Chris@0
|
20
|
Chris@0
|
21 /**
|
Chris@0
|
22 * The use of statusCodeNotEquals() is not available.
|
Chris@0
|
23 *
|
Chris@0
|
24 * @param int $code
|
Chris@0
|
25 * The status code.
|
Chris@0
|
26 */
|
Chris@0
|
27 public function statusCodeNotEquals($code) {
|
Chris@0
|
28 @trigger_error('Support for statusCodeNotEquals is to be dropped from Javascript tests. See https://www.drupal.org/node/2857562.');
|
Chris@0
|
29 parent::statusCodeNotEquals($code);
|
Chris@0
|
30 }
|
Chris@0
|
31
|
Chris@0
|
32 /**
|
Chris@0
|
33 * The use of responseHeaderEquals() is not available.
|
Chris@0
|
34 *
|
Chris@0
|
35 * @param string $name
|
Chris@0
|
36 * The name of the header.
|
Chris@0
|
37 * @param string $value
|
Chris@0
|
38 * The value to check the header against.
|
Chris@0
|
39 */
|
Chris@0
|
40 public function responseHeaderEquals($name, $value) {
|
Chris@0
|
41 @trigger_error('Support for responseHeaderEquals is to be dropped from Javascript tests. See https://www.drupal.org/node/2857562.');
|
Chris@0
|
42 parent::responseHeaderEquals($name, $value);
|
Chris@0
|
43 }
|
Chris@0
|
44
|
Chris@0
|
45 /**
|
Chris@0
|
46 * The use of responseHeaderNotEquals() is not available.
|
Chris@0
|
47 *
|
Chris@0
|
48 * @param string $name
|
Chris@0
|
49 * The name of the header.
|
Chris@0
|
50 * @param string $value
|
Chris@0
|
51 * The value to check the header against.
|
Chris@0
|
52 */
|
Chris@0
|
53 public function responseHeaderNotEquals($name, $value) {
|
Chris@0
|
54 @trigger_error('Support for responseHeaderNotEquals is to be dropped from Javascript tests. See https://www.drupal.org/node/2857562.');
|
Chris@0
|
55 parent::responseHeaderNotEquals($name, $value);
|
Chris@0
|
56 }
|
Chris@0
|
57
|
Chris@14
|
58 /**
|
Chris@14
|
59 * The use of responseHeaderContains() is not available.
|
Chris@14
|
60 *
|
Chris@14
|
61 * @param string $name
|
Chris@14
|
62 * The name of the header.
|
Chris@14
|
63 * @param string $value
|
Chris@14
|
64 * The value to check the header against.
|
Chris@14
|
65 */
|
Chris@14
|
66 public function responseHeaderContains($name, $value) {
|
Chris@14
|
67 @trigger_error('Support for responseHeaderContains is to be dropped from Javascript tests. See https://www.drupal.org/node/2857562.');
|
Chris@14
|
68 parent::responseHeaderContains($name, $value);
|
Chris@14
|
69 }
|
Chris@14
|
70
|
Chris@14
|
71 /**
|
Chris@14
|
72 * The use of responseHeaderNotContains() is not available.
|
Chris@14
|
73 *
|
Chris@14
|
74 * @param string $name
|
Chris@14
|
75 * The name of the header.
|
Chris@14
|
76 * @param string $value
|
Chris@14
|
77 * The value to check the header against.
|
Chris@14
|
78 */
|
Chris@14
|
79 public function responseHeaderNotContains($name, $value) {
|
Chris@14
|
80 @trigger_error('Support for responseHeaderNotContains is to be dropped from Javascript tests. See https://www.drupal.org/node/2857562.');
|
Chris@14
|
81 parent::responseHeaderNotContains($name, $value);
|
Chris@14
|
82 }
|
Chris@14
|
83
|
Chris@14
|
84 /**
|
Chris@14
|
85 * The use of responseHeaderMatches() is not available.
|
Chris@14
|
86 *
|
Chris@14
|
87 * @param string $name
|
Chris@14
|
88 * The name of the header.
|
Chris@14
|
89 * @param string $regex
|
Chris@14
|
90 * The value to check the header against.
|
Chris@14
|
91 */
|
Chris@14
|
92 public function responseHeaderMatches($name, $regex) {
|
Chris@14
|
93 @trigger_error('Support for responseHeaderMatches is to be dropped from Javascript tests. See https://www.drupal.org/node/2857562.');
|
Chris@14
|
94 parent::responseHeaderMatches($name, $regex);
|
Chris@14
|
95 }
|
Chris@14
|
96
|
Chris@14
|
97 /**
|
Chris@14
|
98 * The use of responseHeaderNotMatches() is not available.
|
Chris@14
|
99 *
|
Chris@14
|
100 * @param string $name
|
Chris@14
|
101 * The name of the header.
|
Chris@14
|
102 * @param string $regex
|
Chris@14
|
103 * The value to check the header against.
|
Chris@14
|
104 */
|
Chris@14
|
105 public function responseHeaderNotMatches($name, $regex) {
|
Chris@14
|
106 @trigger_error('Support for responseHeaderNotMatches is to be dropped from Javascript tests. See https://www.drupal.org/node/2857562.');
|
Chris@14
|
107 parent::responseHeaderNotMatches($name, $regex);
|
Chris@14
|
108 }
|
Chris@14
|
109
|
Chris@0
|
110 }
|