You are here

public function SelectLeastTest::selectLeastProvider in Drupal 9

File

core/tests/Drupal/KernelTests/Core/Database/SelectLeastTest.php, line 22

Class

SelectLeastTest
Tests the SQL LEAST operator.

Namespace

Drupal\KernelTests\Core\Database

Code

public function selectLeastProvider() {
  return [
    [
      [
        1,
        2,
        3,
        4,
        5,
        6,
      ],
      1,
    ],
    [
      [
        'A',
        'B',
        'C',
        'NULL',
        'F',
      ],
      'A',
    ],
    [
      [
        'NULL',
        'NULL',
      ],
      'NULL',
    ],
    [
      [
        'TRUE',
        'FALSE',
      ],
      'FALSE',
    ],
    [
      [
        'A',
        'B',
        'C',
        'NULL',
      ],
      'A',
    ],
  ];
}