/**
  * @test
  */
 public function acceptObjectStorageAsObjects()
 {
     $objects = new ObjectStorage();
     $this->controller->_set('objects', $objects);
     $this->controller->indexAction();
     $this->assertSame($objects, $this->controller->_get('objects'));
 }
 /**
  * @test
  */
 public function calculateDisplayRangeDeterminesCorrectDisplayRangeStartAndEndForOddMaximumNumberOfLinksWhenOnLastPage()
 {
     $this->controller->_set('maximumNumberOfLinks', 7);
     $this->controller->_set('numberOfPages', 100);
     $this->controller->_set('currentPage', 100);
     $this->controller->_call('calculateDisplayRange');
     $this->assertSame(94, $this->controller->_get('displayRangeStart'));
     $this->assertSame(100, $this->controller->_get('displayRangeEnd'));
 }