Example #1
0
 public function testSetRowsPerPageDefaultsToUserChoice()
 {
     $session = m::mock('Illuminate\\Session\\Store');
     $session->shouldReceive('get')->once()->andReturn(23);
     $this->config->shouldReceive('getOption')->once();
     $this->dataTable->setRowsPerPage($session, 54);
     $this->assertEquals($this->dataTable->getRowsPerPage(), 23);
 }