X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Ftests%2FDrupal%2FTests%2FComponent%2FUtility%2FSortArrayTest.php;fp=web%2Fcore%2Ftests%2FDrupal%2FTests%2FComponent%2FUtility%2FSortArrayTest.php;h=ab2447065a76b4554e7074311b89f2ef759651a2;hp=7503cc27100cb24bff913a40c6aebc8aa256116a;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/tests/Drupal/Tests/Component/Utility/SortArrayTest.php b/web/core/tests/Drupal/Tests/Component/Utility/SortArrayTest.php index 7503cc271..ab2447065 100644 --- a/web/core/tests/Drupal/Tests/Component/Utility/SortArrayTest.php +++ b/web/core/tests/Drupal/Tests/Component/Utility/SortArrayTest.php @@ -49,42 +49,42 @@ class SortArrayTest extends TestCase { $tests[] = [ ['weight' => 1], ['weight' => 1], - 0 + 0, ]; // Weights set and $a is less (lighter) than $b. $tests[] = [ ['weight' => 1], ['weight' => 2], - -1 + -1, ]; // Weights set and $a is greater (heavier) than $b. $tests[] = [ ['weight' => 2], ['weight' => 1], - 1 + 1, ]; // Weights not set. $tests[] = [ [], [], - 0 + 0, ]; // Weights for $b not set. $tests[] = [ ['weight' => 1], [], - 1 + 1, ]; // Weights for $a not set. $tests[] = [ [], ['weight' => 1], - -1 + -1, ]; return $tests; @@ -125,42 +125,42 @@ class SortArrayTest extends TestCase { $tests[] = [ ['#weight' => 1], ['#weight' => 1], - 0 + 0, ]; // Weights set and $a is less (lighter) than $b. $tests[] = [ ['#weight' => 1], ['#weight' => 2], - -1 + -1, ]; // Weights set and $a is greater (heavier) than $b. $tests[] = [ ['#weight' => 2], ['#weight' => 1], - 1 + 1, ]; // Weights not set. $tests[] = [ [], [], - 0 + 0, ]; // Weights for $b not set. $tests[] = [ ['#weight' => 1], [], - 1 + 1, ]; // Weights for $a not set. $tests[] = [ [], ['#weight' => 1], - -1 + -1, ]; return $tests; @@ -201,35 +201,35 @@ class SortArrayTest extends TestCase { $tests[] = [ ['title' => 'test'], ['title' => 'test'], - 0 + 0, ]; // Title $a not set. $tests[] = [ [], ['title' => 'test'], - -4 + -4, ]; // Title $b not set. $tests[] = [ ['title' => 'test'], [], - 4 + 4, ]; // Titles set but not equal. $tests[] = [ ['title' => 'test'], ['title' => 'testing'], - -1 + -1, ]; // Titles set but not equal. $tests[] = [ ['title' => 'testing'], ['title' => 'test'], - 1 + 1, ]; return $tests; @@ -270,35 +270,35 @@ class SortArrayTest extends TestCase { $tests[] = [ ['#title' => 'test'], ['#title' => 'test'], - 0 + 0, ]; // Title $a not set. $tests[] = [ [], ['#title' => 'test'], - -4 + -4, ]; // Title $b not set. $tests[] = [ ['#title' => 'test'], [], - 4 + 4, ]; // Titles set but not equal. $tests[] = [ ['#title' => 'test'], ['#title' => 'testing'], - -1 + -1, ]; // Titles set but not equal. $tests[] = [ ['#title' => 'testing'], ['#title' => 'test'], - 1 + 1, ]; return $tests;