for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Sonata package.
*
* (c) Thomas Rabaix <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sonata\DoctrinePHPCRAdminBundle\Tests\Filter;
use Doctrine\ODM\PHPCR\Query\Builder\QueryBuilder;
use Doctrine\ODM\PHPCR\Tools\Test\QueryBuilderTester;
class BaseTestCase extends \PHPUnit_Framework_TestCase
{
public function setUp()
$this->qb = new QueryBuilder;
$this->qbTester = new QueryBuilderTester($this->qb);
$this->proxyQuery = $this->getMockBuilder('Sonata\DoctrinePHPCRAdminBundle\Datagrid\ProxyQuery')
->disableOriginalConstructor()
->getMock();
$this->proxyQuery->expects($this->any())
->method('getQueryBuilder')
->will($this->returnValue($this->qb));
}