From 040b411ec2489cdf8c1ef6caaed6f1aaa69e2acd Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Sat, 22 Apr 2017 18:25:30 +0000 Subject: [PATCH] Build/Test Tools: Avoid skipping canonical tests that are connected to open Trac tickets. This is a remnant of the test suite behaviour before #30284 fixed most of it and makes it far too easy to hide failing tests. If any tests begin to fail as a result of this change then they should be fixed. Fixes #40534 git-svn-id: https://develop.svn.wordpress.org/trunk@40518 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/includes/testcase-canonical.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/phpunit/includes/testcase-canonical.php b/tests/phpunit/includes/testcase-canonical.php index 2ffbc982eb..a48d716ab2 100644 --- a/tests/phpunit/includes/testcase-canonical.php +++ b/tests/phpunit/includes/testcase-canonical.php @@ -157,9 +157,6 @@ class WP_Canonical_UnitTestCase extends WP_UnitTestCase { public function assertCanonical( $test_url, $expected, $ticket = 0, $expected_doing_it_wrong = array() ) { $this->expected_doing_it_wrong = array_merge( $this->expected_doing_it_wrong, (array) $expected_doing_it_wrong ); - if ( $ticket ) - $this->knownWPBug( $ticket ); - $ticket_ref = ($ticket > 0) ? 'Ticket #' . $ticket : null; if ( is_string($expected) )