Passed
Push — master ( 8dfc9c...1f8f86 )
by Robbie
02:46 queued 10s
created

NotificationTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 7
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testCanBeDisabled() 0 5 1
1
<?php
2
3
namespace SilverStripe\MFA\Service\Tests;
4
5
use SilverStripe\Dev\SapphireTest;
6
use SilverStripe\MFA\Service\Notification;
7
use SilverStripe\Security\Member;
8
9
class NotificationTest extends SapphireTest
10
{
11
    public function testCanBeDisabled()
12
    {
13
        Notification::config()->set('enabled', false);
14
        $result = Notification::create()->send($this->createMock(Member::class), 'foo');
15
        $this->assertFalse($result);
16
    }
17
}
18