mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Linter fixes
This commit is contained in:
parent
9d03a6856c
commit
7a0d354529
@ -147,7 +147,12 @@ class GridFieldAddExistingAutocompleterTest extends FunctionalTest
|
||||
$result = json_decode($response->getBody(), true);
|
||||
$this->assertEquals(
|
||||
['Team 1', 'Team 2', 'Team 3', 'Team 4'],
|
||||
array_map(function ($item) { return $item['label']; }, $result)
|
||||
array_map(
|
||||
function ($item) {
|
||||
return $item['label'];
|
||||
},
|
||||
$result
|
||||
)
|
||||
);
|
||||
|
||||
$component->setSearchList(Team::get()->sort('Name', 'DESC'));
|
||||
@ -157,7 +162,12 @@ class GridFieldAddExistingAutocompleterTest extends FunctionalTest
|
||||
$result = json_decode($response->getBody(), true);
|
||||
$this->assertEquals(
|
||||
['Team 4', 'Team 3', 'Team 2', 'Team 1'],
|
||||
array_map(function ($item) { return $item['label']; }, $result)
|
||||
array_map(
|
||||
function ($item) {
|
||||
return $item['label'];
|
||||
},
|
||||
$result
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user