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.
Completed
Push — master ( d4c1be...dd680f )
by Christian
01:28
created

VenueSearchBuilderTest::testWithCityId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 12
rs 9.8666
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
/*
4
 * (c) Christian Gripp <[email protected]>
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace Core23\SetlistFm\Tests\Builder;
11
12
use Core23\SetlistFm\Builder\VenueSearchBuilder;
13
use PHPUnit\Framework\TestCase;
14
15
class VenueSearchBuilderTest extends TestCase
16
{
17
    public function testCreate(): void
18
    {
19
        $builder = VenueSearchBuilder::create();
20
21
        $expected = [
22
            'p' => 1,
23
        ];
24
        $this->assertSame($expected, $builder->getQuery());
25
    }
26
27
    public function testWithCityId(): void
28
    {
29
        $builder = VenueSearchBuilder::create()
30
            ->withCityId(15)
31
        ;
32
33
        $expected = [
34
            'p'      => 1,
35
            'cityId' => 15,
36
        ];
37
        $this->assertSame($expected, $builder->getQuery());
38
    }
39
40
    public function testWithName(): void
41
    {
42
        $builder = VenueSearchBuilder::create()
43
            ->withName('Foo')
44
        ;
45
46
        $expected = [
47
            'p'    => 1,
48
            'name' => 'Foo',
49
        ];
50
        $this->assertSame($expected, $builder->getQuery());
51
    }
52
53
    public function testWithCountry(): void
54
    {
55
        $builder = VenueSearchBuilder::create()
56
            ->withCountry('DE')
57
        ;
58
59
        $expected = [
60
            'p'       => 1,
61
            'country' => 'DE',
62
        ];
63
        $this->assertSame($expected, $builder->getQuery());
64
    }
65
66
    public function testWithCity(): void
67
    {
68
        $builder = VenueSearchBuilder::create()
69
            ->withCity('New York')
70
        ;
71
72
        $expected = [
73
            'p'        => 1,
74
            'cityName' => 'New York',
75
        ];
76
        $this->assertSame($expected, $builder->getQuery());
77
    }
78
79
    public function testWithStateCode(): void
80
    {
81
        $builder = VenueSearchBuilder::create()
82
            ->withStateCode('NY')
83
        ;
84
85
        $expected = [
86
            'p'         => 1,
87
            'stateCode' => 'NY',
88
        ];
89
        $this->assertSame($expected, $builder->getQuery());
90
    }
91
92
    public function testWithState(): void
93
    {
94
        $builder = VenueSearchBuilder::create()
95
            ->withState('Lower Saxony')
96
        ;
97
98
        $expected = [
99
            'p'     => 1,
100
            'state' => 'Lower Saxony',
101
        ];
102
        $this->assertSame($expected, $builder->getQuery());
103
    }
104
105
    public function testPage(): void
106
    {
107
        $builder = VenueSearchBuilder::create()
108
            ->page(42)
109
        ;
110
111
        $expected = [
112
            'p' => 42,
113
        ];
114
        $this->assertSame($expected, $builder->getQuery());
115
    }
116
}
117