WordPress.org

Make WordPress Core

Ticket #38187: trac-38187-remove-unused-variable-from-data-provider.patch

File trac-38187-remove-unused-variable-from-data-provider.patch, 760 bytes (added by jrf, 5 years ago)

Remove copy/paste artifact - unused and unnecessary variable in the test data provider method.

  • tests/phpunit/tests/oembed.php

    From 7329282f65f83e2cd2cc08c6aa6f7f01f99b6467 Mon Sep 17 00:00:00 2001
    From: jrfnl <github_nospam@adviesenzo.nl>
    Date: Fri, 30 Sep 2016 17:34:03 +0200
    Subject: [PATCH] Remove unused variable from data provider.
    
    ---
     tests/phpunit/tests/oembed.php | 2 --
     1 file changed, 2 deletions(-)
    
    diff --git a/tests/phpunit/tests/oembed.php b/tests/phpunit/tests/oembed.php
    index f46ac07..0fa8776 100644
    a b class Tests_oEmbed extends WP_UnitTestCase { 
    832832         * @return array
    833833         */
    834834        public function dataShouldNotMatchOembedRegex() {
    835                 $providers = self::$provider_map;
    836 
    837835                return array(
    838836                        array( 'http://dairly/something' ),
    839837                        array( 'https://daisly/' ),