GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Pull Request — master (#27)
by Simone
12:46 queued 07:49
created

QueryBuilderFactoryTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 18
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A test() 0 12 1
1
<?php
2
3
namespace Mado\QueryBundle\Tests\Objects;
4
5
use Mado\QueryBundle\Queries\QueryBuilderFactory;
6
use Mado\QueryBundle\Vocabulary\Operators;
7
use PHPUnit\Framework\TestCase;
8
9
/**
10
 * @coversDefaultClass \Mado\QueryBundle\Queries\QueryBuilderFactory
11
 */
12
class QueryBuilderFactoryTest extends TestCase
13
{
14
    /**
15
     * @covers \Mado\QueryBundle\Queries\QueryBuilderFactory::__construct
16
     * @covers \Mado\QueryBundle\Queries\QueryBuilderFactory::getAvailableFilters
17
     */
18
    public function test()
19
    {
20
        $this->manager = $this
0 ignored issues
show
Bug Best Practice introduced by
The property manager does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
21
            ->getMockBuilder('Doctrine\ORM\EntityManager')
22
            ->disableOriginalConstructor()
23
            ->getMock();
24
25
        $queryBuilderFactory = new QueryBuilderFactory($this->manager);
26
27
        $this->assertEquals(
28
            array_keys(Operators::getAll()),
29
            $queryBuilderFactory->getAvailableFilters()
30
        );
31
    }
32
}
33