public function testGetNextPriority()
 {
     $pl = new ElggPriorityList();
     $elements = array(2 => 'Test Element', 0 => 'Test Element 2', -2 => 'Test Element 3');
     foreach ($elements as $priority => $element) {
         $pl->add($element, $priority);
     }
     // we're not specifying a priority so it should be the next consecutive to 0.
     $this->assertEquals(1, $pl->getNextPriority());
     // add another one at priority 1
     $pl->add('Test Element 1');
     // next consecutive to 0 is now 3.
     $this->assertEquals(3, $pl->getNextPriority());
 }