public function PhotosAlbumTest::orderValueProvider in Album Photos 8.4
Same name and namespace in other branches
- 8.5 tests/src/Unit/PhotosAlbumTest.php \Drupal\Tests\photos\Unit\PhotosAlbumTest::orderValueProvider()
- 6.0.x tests/src/Unit/PhotosAlbumTest.php \Drupal\Tests\photos\Unit\PhotosAlbumTest::orderValueProvider()
Data provider for testOrderValue.
File
- tests/
src/ Unit/ PhotosAlbumTest.php, line 57
Class
- PhotosAlbumTest
- @coversDefaultClass \Drupal\photos\PhotosAlbum @group photos
Namespace
Drupal\Tests\photos\UnitCode
public function orderValueProvider() {
return [
[
'weight',
'asc',
0,
0,
[
'order' => [
'column' => 'p.wid',
'sort' => 'asc',
],
],
],
[
0,
0,
0,
[
'column' => 'f.filesize',
'sort' => 'asc',
],
[
'order' => [
'column' => 'f.filesize',
'sort' => 'asc',
],
],
],
[
0,
0,
0,
0,
[
'order' => [
'column' => 'f.fid',
'sort' => 'desc',
],
],
],
];
}