Total Complexity | 4 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class TestimonialCategoryTest extends SapphireTest |
||
14 | { |
||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | protected static $fixture_file = '../fixtures.yml'; |
||
19 | |||
20 | /** |
||
21 | * |
||
22 | */ |
||
23 | public function testCanCreate() |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * |
||
31 | */ |
||
32 | public function testCanEdit() |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * |
||
40 | */ |
||
41 | public function testCanDelete() |
||
42 | { |
||
43 | $this->assertTrue($this->objFromFixture(TestimonialCategory::class, 'one')->canDelete($this->objFromFixture(Member::class, 'site-owner'))); |
||
44 | $this->assertFalse($this->objFromFixture(TestimonialCategory::class, 'one')->canDelete(Member::singleton())); |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * |
||
49 | */ |
||
50 | public function testCanView() |
||
54 | } |
||
55 | } |
||
56 |