3 namespace Drupal\FunctionalJavascriptTests;
6 * Defines a JSWebAssert with no support for status code and header assertions.
8 class WebDriverWebAssert extends JSWebAssert {
11 * The use of statusCodeEquals() is not available.
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);
22 * The use of statusCodeNotEquals() is not available.
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);
33 * The use of responseHeaderEquals() is not available.
36 * The name of the header.
37 * @param string $value
38 * The value to check the header against.
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);
46 * The use of responseHeaderNotEquals() is not available.
49 * The name of the header.
50 * @param string $value
51 * The value to check the header against.
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);
59 * The use of responseHeaderContains() is not available.
62 * The name of the header.
63 * @param string $value
64 * The value to check the header against.
66 public function responseHeaderContains($name, $value) {
67 @trigger_error('Support for responseHeaderContains is to be dropped from Javascript tests. See https://www.drupal.org/node/2857562.');
68 parent::responseHeaderContains($name, $value);
72 * The use of responseHeaderNotContains() is not available.
75 * The name of the header.
76 * @param string $value
77 * The value to check the header against.
79 public function responseHeaderNotContains($name, $value) {
80 @trigger_error('Support for responseHeaderNotContains is to be dropped from Javascript tests. See https://www.drupal.org/node/2857562.');
81 parent::responseHeaderNotContains($name, $value);
85 * The use of responseHeaderMatches() is not available.
88 * The name of the header.
89 * @param string $regex
90 * The value to check the header against.
92 public function responseHeaderMatches($name, $regex) {
93 @trigger_error('Support for responseHeaderMatches is to be dropped from Javascript tests. See https://www.drupal.org/node/2857562.');
94 parent::responseHeaderMatches($name, $regex);
98 * The use of responseHeaderNotMatches() is not available.
100 * @param string $name
101 * The name of the header.
102 * @param string $regex
103 * The value to check the header against.
105 public function responseHeaderNotMatches($name, $regex) {
106 @trigger_error('Support for responseHeaderNotMatches is to be dropped from Javascript tests. See https://www.drupal.org/node/2857562.');
107 parent::responseHeaderNotMatches($name, $regex);