Skip to content

Commit

Permalink
Fix test coverage of legacy service by opting out the whole class.
Browse files Browse the repository at this point in the history
  • Loading branch information
LionsAd committed Jun 9, 2015
1 parent 76c72b2 commit ff6ffa5
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/Legacy/Drupal7.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
* @method mixed variable_get($name, $default = NULL)
* @method void variable_set($name, $value)
*
* @codeCoverageIgnore
*/
class Drupal7 {

Expand Down Expand Up @@ -89,8 +90,6 @@ public function __call($method, $args) {
* An HTML string containing a link to the given path.
*
* @see url()
*
* @codeCoverageIgnore
*/
public function l($text, $path, array $options = array()) {
return l($text, $path, $options);
Expand Down Expand Up @@ -156,8 +155,6 @@ public function l($text, $path, array $options = array()) {
* @see get_t()
* @see format_string()
* @ingroup sanitization
*
* @codeCoverageIgnore
*/
public function t($string, array $args = array(), array $options = array()) {
return t($string, $args, $options);
Expand Down Expand Up @@ -249,8 +246,6 @@ public function url($path = NULL, array $options = array()) {
* The return value of the hook implementation.
*
* @see drupal_alter()
*
* @codeCoverageIgnore
*/
public function module_invoke($module, $hook) {
$args = func_get_args();
Expand All @@ -276,8 +271,6 @@ public function module_invoke($module, $hook) {
* arrays from their implementations, those are merged into one array.
*
* @see drupal_alter()
*
* @codeCoverageIgnore
*/
public function module_invoke_all($hook) {
$args = func_get_args();
Expand Down Expand Up @@ -342,8 +335,6 @@ public function module_invoke_all($hook) {
* should not be used for new Drupal 7 code either. It is here only for
* backwards compatibility with older code that passed additional arguments
* to drupal_alter().
*
* @codeCoverageIgnore
*/
public function drupal_alter($type, &$data, &$context1 = NULL, &$context2 = NULL, &$context3 = NULL) {
drupal_alter($type, $data, $context1, $context2, $context3);
Expand All @@ -361,8 +352,6 @@ public function drupal_alter($type, &$data, &$context1 = NULL, &$context2 = NULL
*
* @return
* TRUE if the item is loaded or has already been loaded.
*
* @codeCoverageIgnore
*/
public function drupal_load($type, $name) {
return drupal_load($type, $name);
Expand Down

0 comments on commit ff6ffa5

Please sign in to comment.