Passed
Branch master (e5ff15)
by Antony
01:18
created

KnockoutFormActionTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testKnockoutFormAction() 0 8 1
1
<?php
2
3
namespace AntonyThorpe\Knockout\Tests;
4
5
use SilverStripe\Dev\SapphireTest;
6
use AntonyThorpe\Knockout\KnockoutFormAction;
7
8
/**
9
 * KnockoutFormActionTest
10
 */
11
class KnockoutFormActionTest extends SapphireTest
12
{
13
    public function testKnockoutFormAction()
14
    {
15
        $action = KnockoutFormAction::create('doSave', 'Save')->setDisabledClass('astroid');
16
17
        $this->assertEquals(
18
            "astroid",
19
            $action->getDisabledClass(),
20
            "astroid"
21
        );
22
    }
23
}
24