/** * @test */ public function findByWhereClauseWithThreeRecordsAndLimitBeginOneAndMaximumOneFindsOnlySecondRecord() { $this->testingFramework->createRecord('tx_oelib_test', array('title' => 'foo')); $secondUid = $this->testingFramework->createRecord('tx_oelib_test', array('title' => 'bar')); $this->testingFramework->createRecord('tx_oelib_test', array('title' => 'foo')); self::assertSame((string) $secondUid, $this->subject->findByWhereClause('', '', '1,1')->getUids()); }