public function CriteriaTest::testOrderings

File

drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Collections/CriteriaTest.php, line 70

Class

CriteriaTest

Namespace

Doctrine\Tests\Common\Collections

Code

public function testOrderings() {
  $criteria = Criteria::create()
    ->orderBy(array(
    "foo" => "ASC",
  ));
  $this
    ->assertEquals(array(
    "foo" => "ASC",
  ), $criteria
    ->getOrderings());
}