public function testSetOrderByEventColumnCanSortDescendingByEventTitle() { $eventUid1 = $this->testingFramework->createRecord('tx_seminars_seminars', array('title' => 'test title 1')); $eventUid2 = $this->testingFramework->createRecord('tx_seminars_seminars', array('title' => 'test title 2')); $registrationUid1 = $this->testingFramework->createRecord('tx_seminars_attendances', array('seminar' => $eventUid1)); $registrationUid2 = $this->testingFramework->createRecord('tx_seminars_attendances', array('seminar' => $eventUid2)); $this->fixture->setOrderByEventColumn('tx_seminars_seminars.title DESC'); $bag = $this->fixture->build(); self::assertEquals($bag->current()->getUid(), $registrationUid2); self::assertEquals($bag->next()->getUid(), $registrationUid1); }