You are here

public function PhotosAlbumTest::orderValueProvider in Album Photos 8.5

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

Code

public function orderValueProvider() {
  return [
    [
      'weight',
      'asc',
      0,
      0,
      [
        'order' => [
          'column' => 'p.weight',
          'sort' => 'asc',
        ],
      ],
    ],
    [
      0,
      0,
      0,
      [
        'column' => 'f.filesize',
        'sort' => 'asc',
      ],
      [
        'order' => [
          'column' => 'f.filesize',
          'sort' => 'asc',
        ],
      ],
    ],
    [
      0,
      0,
      0,
      0,
      [
        'order' => [
          'column' => 'p.id',
          'sort' => 'desc',
        ],
      ],
    ],
  ];
}