+
+ /**
+ * Test reorder with asc/desc parameter.
+ */
+ public function testReorderLinksDesc()
+ {
+ self::$publicLinkDB->reorder('ASC');
+ $linkIdToTest = 42;
+ foreach (self::$publicLinkDB as $key => $value) {
+ $this->assertEquals($linkIdToTest, $key);
+ break;
+ }
+ self::$publicLinkDB->reorder('DESC');
+ $linkIdToTest = 41;
+ foreach (self::$publicLinkDB as $key => $value) {
+ $this->assertEquals($linkIdToTest, $key);
+ break;
+ }
+ }