public function PhotosAlbumTest::testOrderValue 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::testOrderValue()
- 8.4 tests/src/Unit/PhotosAlbumTest.php \Drupal\Tests\photos\Unit\PhotosAlbumTest::testOrderValue()
@covers ::orderValue @dataProvider orderValueProvider
File
- tests/
src/ Unit/ PhotosAlbumTest.php, line 105
Class
- PhotosAlbumTest
- @coversDefaultClass \Drupal\photos\PhotosAlbum @group photos
Namespace
Drupal\Tests\photos\UnitCode
public function testOrderValue($field, $sort, $limit, $default, $expected_result) {
$this
->assertSame($expected_result, PhotosAlbum::orderValue($field, $sort, $limit, $default));
}