diff --git a/core/tests/Drupal/Tests/Component/Utility/SortArrayTest.php b/core/tests/Drupal/Tests/Component/Utility/SortArrayTest.php index 7c25b4b..c2804e4 100644 --- a/core/tests/Drupal/Tests/Component/Utility/SortArrayTest.php +++ b/core/tests/Drupal/Tests/Component/Utility/SortArrayTest.php @@ -314,89 +314,4 @@ public function providerSortByTitleProperty() { return $tests; } - /** - * Data provider for testSortByWeightAndTitleKey. - * - * @return array - * An array of test data. - */ - public function providerTestSortByWeightAndTitleKey() { - $stdclass_title_1 = new \stdClass(); - $stdclass_title_1->title = 'a'; - - $stdclass_title_2 = new \stdClass(); - $stdclass_title_2->title = 'b'; - - $stdclass_weight_1 = new \stdClass(); - $stdclass_weight_1->weight = 1; - - $stdclass_weight_2 = new \stdClass(); - $stdclass_weight_2->weight = 2; - - $stdclass_weight_3 = clone $stdclass_weight_1; - - return array( - array( - array(), - array(), - 0 - ), - array( - array('weight' => 1), - array('weight' => 2), - -1 - ), - array( - array('weight' => 2), - array('weight' => 1), - 1 - ), - array( - array('title' => 'b', 'weight' => 1), - array('title' => 'a', 'weight' => 2), - -1 - ), - array( - array('title' => 'a', 'weight' => 2), - array('title' => 'b', 'weight' => 1), - 1 - ), - array( - array('title' => 'a', 'weight' => 1), - array('title' => 'b', 'weight' => 1), - -1 - ), - array( - array('title' => 'b', 'weight' => 1), - array('title' => 'a', 'weight' => 1), - 1 - ), - array( - array('title' => 'a'), - array('title' => 'b'), - -1 - ), - array( - array('title' => 'A'), - array('title' => 'a'), - 0 - ), - array( - $stdclass_title_1, - $stdclass_title_2, - -1 - ), - array( - $stdclass_weight_1, - $stdclass_weight_2, - -1 - ), - array( - $stdclass_weight_1, - $stdclass_weight_3, - 0 - ), - ); - } - }