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