projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website]
/
web
/
core
/
tests
/
Drupal
/
Tests
/
Component
/
Utility
/
SortArrayTest.php
diff --git
a/web/core/tests/Drupal/Tests/Component/Utility/SortArrayTest.php
b/web/core/tests/Drupal/Tests/Component/Utility/SortArrayTest.php
index 7503cc27100cb24bff913a40c6aebc8aa256116a..ab2447065a76b4554e7074311b89f2ef759651a2 100644
(file)
--- 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],
$tests[] = [
['weight' => 1],
['weight' => 1],
- 0
+ 0
,
];
// Weights set and $a is less (lighter) than $b.
$tests[] = [
['weight' => 1],
['weight' => 2],
];
// 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],
];
// Weights set and $a is greater (heavier) than $b.
$tests[] = [
['weight' => 2],
['weight' => 1],
- 1
+ 1
,
];
// Weights not set.
$tests[] = [
[],
[],
];
// Weights not set.
$tests[] = [
[],
[],
- 0
+ 0
,
];
// Weights for $b not set.
$tests[] = [
['weight' => 1],
[],
];
// Weights for $b not set.
$tests[] = [
['weight' => 1],
[],
- 1
+ 1
,
];
// Weights for $a not set.
$tests[] = [
[],
['weight' => 1],
];
// Weights for $a not set.
$tests[] = [
[],
['weight' => 1],
- -1
+ -1
,
];
return $tests;
];
return $tests;
@@
-125,42
+125,42
@@
class SortArrayTest extends TestCase {
$tests[] = [
['#weight' => 1],
['#weight' => 1],
$tests[] = [
['#weight' => 1],
['#weight' => 1],
- 0
+ 0
,
];
// Weights set and $a is less (lighter) than $b.
$tests[] = [
['#weight' => 1],
['#weight' => 2],
];
// 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],
];
// Weights set and $a is greater (heavier) than $b.
$tests[] = [
['#weight' => 2],
['#weight' => 1],
- 1
+ 1
,
];
// Weights not set.
$tests[] = [
[],
[],
];
// Weights not set.
$tests[] = [
[],
[],
- 0
+ 0
,
];
// Weights for $b not set.
$tests[] = [
['#weight' => 1],
[],
];
// Weights for $b not set.
$tests[] = [
['#weight' => 1],
[],
- 1
+ 1
,
];
// Weights for $a not set.
$tests[] = [
[],
['#weight' => 1],
];
// Weights for $a not set.
$tests[] = [
[],
['#weight' => 1],
- -1
+ -1
,
];
return $tests;
];
return $tests;
@@
-201,35
+201,35
@@
class SortArrayTest extends TestCase {
$tests[] = [
['title' => 'test'],
['title' => 'test'],
$tests[] = [
['title' => 'test'],
['title' => 'test'],
- 0
+ 0
,
];
// Title $a not set.
$tests[] = [
[],
['title' => 'test'],
];
// Title $a not set.
$tests[] = [
[],
['title' => 'test'],
- -4
+ -4
,
];
// Title $b not set.
$tests[] = [
['title' => 'test'],
[],
];
// Title $b not set.
$tests[] = [
['title' => 'test'],
[],
- 4
+ 4
,
];
// Titles set but not equal.
$tests[] = [
['title' => 'test'],
['title' => 'testing'],
];
// Titles set but not equal.
$tests[] = [
['title' => 'test'],
['title' => 'testing'],
- -1
+ -1
,
];
// Titles set but not equal.
$tests[] = [
['title' => 'testing'],
['title' => 'test'],
];
// Titles set but not equal.
$tests[] = [
['title' => 'testing'],
['title' => 'test'],
- 1
+ 1
,
];
return $tests;
];
return $tests;
@@
-270,35
+270,35
@@
class SortArrayTest extends TestCase {
$tests[] = [
['#title' => 'test'],
['#title' => 'test'],
$tests[] = [
['#title' => 'test'],
['#title' => 'test'],
- 0
+ 0
,
];
// Title $a not set.
$tests[] = [
[],
['#title' => 'test'],
];
// Title $a not set.
$tests[] = [
[],
['#title' => 'test'],
- -4
+ -4
,
];
// Title $b not set.
$tests[] = [
['#title' => 'test'],
[],
];
// Title $b not set.
$tests[] = [
['#title' => 'test'],
[],
- 4
+ 4
,
];
// Titles set but not equal.
$tests[] = [
['#title' => 'test'],
['#title' => 'testing'],
];
// Titles set but not equal.
$tests[] = [
['#title' => 'test'],
['#title' => 'testing'],
- -1
+ -1
,
];
// Titles set but not equal.
$tests[] = [
['#title' => 'testing'],
['#title' => 'test'],
];
// Titles set but not equal.
$tests[] = [
['#title' => 'testing'],
['#title' => 'test'],
- 1
+ 1
,
];
return $tests;
];
return $tests;