/** * @test */ public function createRecursivePageListHeedsDecreasingRecursionDepthOnSubsequentCalls() { $uid = $this->testingFramework->createSystemFolder(); $subFolderUid = $this->testingFramework->createSystemFolder($uid); self::assertSame($this->sortExplode($uid . ',' . $subFolderUid), $this->sortExplode(\Tx_Phpunit_Service_Database::createRecursivePageList($uid, 1))); self::assertSame((string) $uid, \Tx_Phpunit_Service_Database::createRecursivePageList($uid, 0)); }