Completed
Push — master ( db7992...03e2a4 )
by Simon
02:23
created

PartialFieldSubmissionTest::testCanEdit()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Firesphere\PartialUserforms\Tests;
4
5
use Firesphere\PartialUserforms\Models\PartialFieldSubmission;
6
use SilverStripe\Dev\SapphireTest;
7
8
class PartialFieldSubmissionTest extends SapphireTest
9
{
10
11
    /**
12
     * @var PartialFieldSubmission
13
     */
14
    protected $field;
15
    
16
    public function testCanView()
17
    {
18
        $this->assertFalse($this->field->canView());
19
    }
20
    
21
    public function testCanCreate()
22
    {
23
        $this->assertTrue($this->field->canCreate());
24
    }
25
    
26
    public function testCanEdit()
27
    {
28
        $this->assertFalse($this->field->canEdit());
29
    }
30
    
31
    public function testCanDelete()
32
    {
33
        $this->assertFalse($this->field->canDelete());
34
    }
35
    
36
    protected function setUp()
37
    {
38
        $this->field = PartialFieldSubmission::create();
39
        return parent::setUp();
40
    }
41
}