@@ 177-186 (lines=10) @@ | ||
174 | $this->assertInstanceOf(ExpressionBuilder::class, $this->builder->getExpressionBuilder()); |
|
175 | } |
|
176 | ||
177 | public function testCreateDataSource() |
|
178 | { |
|
179 | $dataSource = $this->builder->createDataSource(); |
|
180 | ||
181 | $this->assertInstanceOf(PagerfantaDataSource::class, $dataSource); |
|
182 | $this->assertInstanceOf(DoctrineODMMongoDBAdapter::class, $dataSource->getAdapter()); |
|
183 | ||
184 | $this->assertSame(10, $dataSource->getMaxPerPage()); |
|
185 | $this->assertSame(1, $dataSource->getCurrentPage()); |
|
186 | } |
|
187 | ||
188 | public function testCreateDataSourceWithAllOption() |
|
189 | { |
@@ 241-250 (lines=10) @@ | ||
238 | $this->assertInstanceOf(ExpressionBuilder::class, $this->builder->getExpressionBuilder()); |
|
239 | } |
|
240 | ||
241 | public function testCreateDataSource() |
|
242 | { |
|
243 | $dataSource = $this->builder->createDataSource(); |
|
244 | ||
245 | $this->assertInstanceOf(PagerfantaDataSource::class, $dataSource); |
|
246 | $this->assertInstanceOf(DoctrineORMAdapter::class, $dataSource->getAdapter()); |
|
247 | ||
248 | $this->assertSame(10, $dataSource->getMaxPerPage()); |
|
249 | $this->assertSame(1, $dataSource->getCurrentPage()); |
|
250 | } |
|
251 | ||
252 | public function testCreateDataSourceWithAllOption() |
|
253 | { |