e621c1a0725cf82c9c697d1f28ce37cf9342b005
[yaffs-website] / web / core / tests / Drupal / FunctionalJavascriptTests / WebDriverWebAssert.php
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   /**
59    * The use of responseHeaderContains() is not available.
60    *
61    * @param string $name
62    *   The name of the header.
63    * @param string $value
64    *   The value to check the header against.
65    */
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);
69   }
70
71   /**
72    * The use of responseHeaderNotContains() is not available.
73    *
74    * @param string $name
75    *   The name of the header.
76    * @param string $value
77    *   The value to check the header against.
78    */
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);
82   }
83
84   /**
85    * The use of responseHeaderMatches() is not available.
86    *
87    * @param string $name
88    *   The name of the header.
89    * @param string $regex
90    *   The value to check the header against.
91    */
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);
95   }
96
97   /**
98    * The use of responseHeaderNotMatches() is not available.
99    *
100    * @param string $name
101    *   The name of the header.
102    * @param string $regex
103    *   The value to check the header against.
104    */
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);
108   }
109
110 }