Completed
Push — 1.2 ( d3ea0d...d8c512 )
by David
16:21
created

BaseTestCase   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 2
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 12 1
1
<?php
2
3
/*
4
 * This file is part of the Sonata package.
5
 *
6
 * (c) Thomas Rabaix <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Sonata\DoctrinePHPCRAdminBundle\Tests\Filter;
13
14
use Doctrine\ODM\PHPCR\Query\Builder\QueryBuilder;
15
use Doctrine\ODM\PHPCR\Tools\Test\QueryBuilderTester;
16
17
class BaseTestCase extends \PHPUnit_Framework_TestCase
18
{
19
    public function setUp()
20
    {
21
        $this->qb = new QueryBuilder;
22
        $this->qbTester = new QueryBuilderTester($this->qb);
23
24
        $this->proxyQuery = $this->getMockBuilder('Sonata\DoctrinePHPCRAdminBundle\Datagrid\ProxyQuery')
25
            ->disableOriginalConstructor()
26
            ->getMock();
27
        $this->proxyQuery->expects($this->any())
28
            ->method('getQueryBuilder')
29
            ->will($this->returnValue($this->qb));
30
    }
31
}
32