You are here

public function CriteriaTest::testOrderings in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/collections/tests/Doctrine/Tests/Common/Collections/CriteriaTest.php \Doctrine\Tests\Common\Collections\CriteriaTest::testOrderings()

File

vendor/doctrine/collections/tests/Doctrine/Tests/Common/Collections/CriteriaTest.php, line 71

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());
}