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.

testUpdateCMSFields()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 7
nc 1
nop 0
1
<?php
2
3
namespace SheaDawson\Blocks\Test;
4
5
use SheaDawson\Blocks\Extensions\BlockSiteConfigExtension;
6
use SilverStripe\Dev\SapphireTest;
7
use SilverStripe\Forms\FieldList;
8
use SilverStripe\SiteConfig\SiteConfig;
9
10
class BlockSiteConfigExtensionTest extends SapphireTest
11
{
12
    /**
13
     *
14
     */
15
    public function testUpdateCMSFields()
16
    {
17
        $object = SiteConfig::current_site_config();
18
        $fields = $object->getCMSFields();
19
        $extension = new BlockSiteConfigExtension();
20
        $extension->updateCMSFields($fields);
21
22
        $this->assertInstanceOf(FieldList::class, $fields);
23
        $this->assertNull($fields->dataFieldByName('Blocks'));
24
    }
25
}