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