Completed
Push — master ( 2f705a...c06b8c )
by Simon
01:46
created

PartialFormSubmissionTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace Firesphere\PartialUserforms\Tests;
4
5
use Firesphere\PartialUserforms\Models\PartialFormSubmission;
6
use SilverStripe\Core\Injector\Injector;
7
use SilverStripe\Dev\SapphireTest;
8
9
class PartialFormSubmissionTest extends SapphireTest
10
{
11
    /**
12
     * @var PartialFormSubmission
13
     */
14
    protected $submission;
15
16
    protected function setUp()
17
    {
18
        $this->submission = Injector::inst()->get(PartialFormSubmission::class);
19
        return parent::setUp();
20
    }
21
22
    public function testCanEdit()
23
    {
24
        $this->assertFalse($this->submission->canEdit());
25
    }
26
27
    public function testCanDelete()
28
    {
29
        $this->assertFalse($this->submission->canDelete());
30
    }
31
}