Fix unit test
This commit is contained in:
parent
0bf06d6691
commit
3b1f0e6019
|
@ -1178,6 +1178,7 @@ class Test_Share extends \Test\TestCase {
|
||||||
$qb->method('andWhere')->will($this->returnSelf());
|
$qb->method('andWhere')->will($this->returnSelf());
|
||||||
$qb->method('select')->will($this->returnSelf());
|
$qb->method('select')->will($this->returnSelf());
|
||||||
$qb->method('from')->will($this->returnSelf());
|
$qb->method('from')->will($this->returnSelf());
|
||||||
|
$qb->method('setParameter')->will($this->returnSelf());
|
||||||
$qb->method('expr')->willReturn($ex);
|
$qb->method('expr')->willReturn($ex);
|
||||||
|
|
||||||
$ret = $this->getMockBuilder('\Doctrine\DBAL\Driver\ResultStatement')
|
$ret = $this->getMockBuilder('\Doctrine\DBAL\Driver\ResultStatement')
|
||||||
|
@ -1232,6 +1233,7 @@ class Test_Share extends \Test\TestCase {
|
||||||
$qb->method('set')->will($this->returnSelf());
|
$qb->method('set')->will($this->returnSelf());
|
||||||
$qb->method('where')->will($this->returnSelf());
|
$qb->method('where')->will($this->returnSelf());
|
||||||
$qb->method('andWhere')->will($this->returnSelf());
|
$qb->method('andWhere')->will($this->returnSelf());
|
||||||
|
$qb->method('setParameter')->will($this->returnSelf());
|
||||||
$qb->method('expr')->willReturn($ex);
|
$qb->method('expr')->willReturn($ex);
|
||||||
|
|
||||||
$ret = $this->getMockBuilder('\Doctrine\DBAL\Driver\ResultStatement')
|
$ret = $this->getMockBuilder('\Doctrine\DBAL\Driver\ResultStatement')
|
||||||
|
@ -1284,6 +1286,7 @@ class Test_Share extends \Test\TestCase {
|
||||||
$qb->method('andWhere')->will($this->returnSelf());
|
$qb->method('andWhere')->will($this->returnSelf());
|
||||||
$qb->method('select')->will($this->returnSelf());
|
$qb->method('select')->will($this->returnSelf());
|
||||||
$qb->method('from')->will($this->returnSelf());
|
$qb->method('from')->will($this->returnSelf());
|
||||||
|
$qb->method('setParameter')->will($this->returnSelf());
|
||||||
$qb->method('expr')->willReturn($ex);
|
$qb->method('expr')->willReturn($ex);
|
||||||
|
|
||||||
$ret = $this->getMockBuilder('\Doctrine\DBAL\Driver\ResultStatement')
|
$ret = $this->getMockBuilder('\Doctrine\DBAL\Driver\ResultStatement')
|
||||||
|
@ -1336,6 +1339,7 @@ class Test_Share extends \Test\TestCase {
|
||||||
$qb->method('andWhere')->will($this->returnSelf());
|
$qb->method('andWhere')->will($this->returnSelf());
|
||||||
$qb->method('select')->will($this->returnSelf());
|
$qb->method('select')->will($this->returnSelf());
|
||||||
$qb->method('from')->will($this->returnSelf());
|
$qb->method('from')->will($this->returnSelf());
|
||||||
|
$qb->method('setParameter')->will($this->returnSelf());
|
||||||
$qb->method('expr')->willReturn($ex);
|
$qb->method('expr')->willReturn($ex);
|
||||||
|
|
||||||
$ret = $this->getMockBuilder('\Doctrine\DBAL\Driver\ResultStatement')
|
$ret = $this->getMockBuilder('\Doctrine\DBAL\Driver\ResultStatement')
|
||||||
|
|
Loading…
Reference in New Issue