annotate core/tests/Drupal/FunctionalJavascriptTests/WebDriverWebAssert.php @ 0:c75dbcec494b

Initial commit from drush-created site
author Chris Cannam
date Thu, 05 Jul 2018 14:24:15 +0000
parents
children
rev   line source
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@0 58 /**
Chris@0 59 * The use of responseHeaderContains() is not available.
Chris@0 60 *
Chris@0 61 * @param string $name
Chris@0 62 * The name of the header.
Chris@0 63 * @param string $value
Chris@0 64 * The value to check the header against.
Chris@0 65 */
Chris@0 66 public function responseHeaderContains($name, $value) {
Chris@0 67 @trigger_error('Support for responseHeaderContains is to be dropped from Javascript tests. See https://www.drupal.org/node/2857562.');
Chris@0 68 parent::responseHeaderContains($name, $value);
Chris@0 69 }
Chris@0 70
Chris@0 71 /**
Chris@0 72 * The use of responseHeaderNotContains() is not available.
Chris@0 73 *
Chris@0 74 * @param string $name
Chris@0 75 * The name of the header.
Chris@0 76 * @param string $value
Chris@0 77 * The value to check the header against.
Chris@0 78 */
Chris@0 79 public function responseHeaderNotContains($name, $value) {
Chris@0 80 @trigger_error('Support for responseHeaderNotContains is to be dropped from Javascript tests. See https://www.drupal.org/node/2857562.');
Chris@0 81 parent::responseHeaderNotContains($name, $value);
Chris@0 82 }
Chris@0 83
Chris@0 84 /**
Chris@0 85 * The use of responseHeaderMatches() is not available.
Chris@0 86 *
Chris@0 87 * @param string $name
Chris@0 88 * The name of the header.
Chris@0 89 * @param string $regex
Chris@0 90 * The value to check the header against.
Chris@0 91 */
Chris@0 92 public function responseHeaderMatches($name, $regex) {
Chris@0 93 @trigger_error('Support for responseHeaderMatches is to be dropped from Javascript tests. See https://www.drupal.org/node/2857562.');
Chris@0 94 parent::responseHeaderMatches($name, $regex);
Chris@0 95 }
Chris@0 96
Chris@0 97 /**
Chris@0 98 * The use of responseHeaderNotMatches() is not available.
Chris@0 99 *
Chris@0 100 * @param string $name
Chris@0 101 * The name of the header.
Chris@0 102 * @param string $regex
Chris@0 103 * The value to check the header against.
Chris@0 104 */
Chris@0 105 public function responseHeaderNotMatches($name, $regex) {
Chris@0 106 @trigger_error('Support for responseHeaderNotMatches is to be dropped from Javascript tests. See https://www.drupal.org/node/2857562.');
Chris@0 107 parent::responseHeaderNotMatches($name, $regex);
Chris@0 108 }
Chris@0 109
Chris@0 110 }