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 ( 0acf1f...91750d )
by Christian
71:33
created

StaticSitemapServiceTest::testSitemap()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 20

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 20
rs 9.6
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * (c) Christian Gripp <[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 Core23\SitemapBundle\Tests\Sitemap;
13
14
use Core23\SitemapBundle\Model\Sitemap;
15
use Core23\SitemapBundle\Model\Url;
16
use Core23\SitemapBundle\Sitemap\StaticSitemapService;
17
use Core23\SitemapBundle\Test\AbstractSitemapServiceTestCase;
18
use Symfony\Component\OptionsResolver\OptionsResolver;
19
20
final class StaticSitemapServiceTest extends AbstractSitemapServiceTestCase
21
{
22
    public function testSitemap(): void
23
    {
24
        $sitemap = new Sitemap();
25
        $sitemap->setSettings(
26
            [
27
                'priority'   => 20,
28
                'url'        => '/foo/bar',
29
                'changefreq' => Url::FREQUENCE_DAILY,
30
            ]
31
        );
32
33
        $optionResolver = new OptionsResolver();
34
        $this->service->configureSettings($optionResolver);
35
36
        $sitemap->setSettings($optionResolver->resolve($sitemap->getSettings()));
37
38
        $this->assertSitemap('/foo/bar', 20, Url::FREQUENCE_DAILY);
39
40
        $this->process($sitemap);
41
    }
42
43
    /**
44
     * {@inheritdoc}
45
     */
46
    protected function createService()
47
    {
48
        return new StaticSitemapService(
49
            'name',
50
            $this->router
51
        );
52
    }
53
}
54