Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 80cc5fd

Browse files
committed
Remove unneeded test.
2 parents 838d045 + f6106c4 commit 80cc5fd

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

tests/Database/DatabaseQueryBuilderTest.php

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -736,27 +736,6 @@ public function testQuickPaginateCorrectlyCreatesPaginatorInstance()
736736
}
737737

738738

739-
public function testGetPaginationCountGetsResultCountWithSelectDistinct()
740-
{
741-
unset($_SERVER['orders']);
742-
$builder = $this->getBuilder();
743-
$builder->getConnection()->shouldReceive('select')->once()->with('select count(distinct "foo", "bar") as aggregate from "users"', array())->andReturn(array(array('aggregate' => 1)));
744-
$builder->getProcessor()->shouldReceive('processSelect')->once()->andReturnUsing(function($query, $results)
745-
{
746-
$_SERVER['orders'] = $query->orders;
747-
return $results;
748-
});
749-
$results = $builder->distinct()->select('foo', 'bar')->from('users')->orderBy('foo', 'desc')->getPaginationCount();
750-
751-
$this->assertNull($_SERVER['orders']);
752-
unset($_SERVER['orders']);
753-
754-
$this->assertEquals(array('foo', 'bar'), $builder->columns);
755-
$this->assertEquals(array(0 => array('column' => 'foo', 'direction' => 'desc')), $builder->orders);
756-
$this->assertEquals(1, $results);
757-
}
758-
759-
760739
public function testPluckMethodReturnsSingleColumn()
761740
{
762741
$builder = $this->getBuilder();

0 commit comments

Comments
 (0)