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

KnockoutFormActionTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 2
dl 0
loc 13
rs 10
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