1 | <?php |
||
7 | class DoctrineDbalSingleTableAdapterTest extends DoctrineDbalTestCase |
||
8 | { |
||
9 | /** |
||
10 | * @var DoctrineDbalSingleTableAdapter |
||
11 | */ |
||
12 | private $adapter; |
||
13 | |||
14 | protected function setUp() |
||
20 | |||
21 | public function testGetNbResults() |
||
25 | |||
26 | public function testGetNbResultsShouldWorkAfterCallingGetSlice() |
||
32 | |||
33 | private function doTestGetNbResults() |
||
37 | |||
38 | public function testGetNbResultWithNoData() |
||
45 | |||
46 | public function testGetSlice() |
||
50 | |||
51 | public function testGetSliceShouldWorkAfterCallingGetNbResults() |
||
57 | |||
58 | private function doTestGetSlice() |
||
70 | |||
71 | /** |
||
72 | * @expectedException \Pagerfanta\Exception\InvalidArgumentException |
||
73 | */ |
||
74 | public function testItShouldThrowAnInvalidArgumentExceptionIfTheCountFieldDoesNotHaveAlias() |
||
78 | |||
79 | /** |
||
80 | * @expectedException \Pagerfanta\Exception\InvalidArgumentException |
||
81 | */ |
||
82 | public function testItShouldThrowAnInvalidArgumentExceptionIfTheQueryHasJoins() |
||
88 | } |
||
89 |