public function PhotosAlbumTest::orderValueChangeProvider in Album Photos 8.5
Same name and namespace in other branches
- 8.4 tests/src/Unit/PhotosAlbumTest.php \Drupal\Tests\photos\Unit\PhotosAlbumTest::orderValueChangeProvider()
- 6.0.x 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',
],
],
];
}