You are here

public function PhotosAlbumTest::orderValueChangeProvider in Album Photos 8.4

Same name and namespace in other branches
  1. 8.5 tests/src/Unit/PhotosAlbumTest.php \Drupal\Tests\photos\Unit\PhotosAlbumTest::orderValueChangeProvider()
  2. 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\Unit

Code

public function orderValueChangeProvider() {
  return [
    [
      'weight',
      'asc',
      [
        'column' => 'p.wid',
        'sort' => 'asc',
      ],
    ],
    [
      'filesize',
      'asc',
      [
        'column' => 'f.filesize',
        'sort' => 'asc',
      ],
    ],
    [
      'test',
      'test',
      [
        'column' => 'f.fid',
        'sort' => 'desc',
      ],
    ],
  ];
}