@@ 30-37 (lines=8) @@ | ||
27 | /** |
|
28 | * |
|
29 | */ |
|
30 | public function testCanView() |
|
31 | { |
|
32 | $object = $this->objFromFixture(BlockSet::class, 'default'); |
|
33 | $admin = $this->objFromFixture(Member::class, 'admin'); |
|
34 | $this->assertTrue($object->canView($admin)); |
|
35 | $member = $this->objFromFixture(Member::class, 'default'); |
|
36 | $this->assertTrue($object->canView($member)); |
|
37 | } |
|
38 | ||
39 | /** |
|
40 | * |
|
@@ 42-49 (lines=8) @@ | ||
39 | /** |
|
40 | * |
|
41 | */ |
|
42 | public function testCanEdit() |
|
43 | { |
|
44 | $object = $this->objFromFixture(BlockSet::class, 'default'); |
|
45 | $admin = $this->objFromFixture(Member::class, 'admin'); |
|
46 | $this->assertTrue($object->canEdit($admin)); |
|
47 | $member = $this->objFromFixture(Member::class, 'default'); |
|
48 | $this->assertFalse($object->canEdit($member)); |
|
49 | } |
|
50 | ||
51 | /** |
|
52 | * |
|
@@ 54-61 (lines=8) @@ | ||
51 | /** |
|
52 | * |
|
53 | */ |
|
54 | public function testCanDelete() |
|
55 | { |
|
56 | $object = $this->objFromFixture(BlockSet::class, 'default'); |
|
57 | $admin = $this->objFromFixture(Member::class, 'admin'); |
|
58 | $this->assertTrue($object->canDelete($admin)); |
|
59 | $member = $this->objFromFixture(Member::class, 'default'); |
|
60 | $this->assertFalse($object->canDelete($member)); |
|
61 | } |
|
62 | ||
63 | /** |
|
64 | * |
|
@@ 66-73 (lines=8) @@ | ||
63 | /** |
|
64 | * |
|
65 | */ |
|
66 | public function testCanCreate() |
|
67 | { |
|
68 | $object = $this->objFromFixture(BlockSet::class, 'default'); |
|
69 | $admin = $this->objFromFixture(Member::class, 'admin'); |
|
70 | $this->assertTrue($object->canCreate($admin)); |
|
71 | $member = $this->objFromFixture(Member::class, 'default'); |
|
72 | $this->assertFalse($object->canCreate($member)); |
|
73 | } |
|
74 | ||
75 | /** |
|
76 | * |
@@ 39-46 (lines=8) @@ | ||
36 | /** |
|
37 | * |
|
38 | */ |
|
39 | public function testCanView() |
|
40 | { |
|
41 | $object = $this->objFromFixture(Block::class, 'default'); |
|
42 | $admin = $this->objFromFixture(Member::class, 'admin'); |
|
43 | $this->assertTrue($object->canView($admin)); |
|
44 | $member = $this->objFromFixture(Member::class, 'default'); |
|
45 | $this->assertTrue($object->canView($member)); |
|
46 | } |
|
47 | ||
48 | /** |
|
49 | * |
|
@@ 51-58 (lines=8) @@ | ||
48 | /** |
|
49 | * |
|
50 | */ |
|
51 | public function testCanEdit() |
|
52 | { |
|
53 | $object = $this->objFromFixture(Block::class, 'default'); |
|
54 | $admin = $this->objFromFixture(Member::class, 'admin'); |
|
55 | $this->assertTrue($object->canEdit($admin)); |
|
56 | $member = $this->objFromFixture(Member::class, 'default'); |
|
57 | $this->assertFalse($object->canEdit($member)); |
|
58 | } |
|
59 | ||
60 | /** |
|
61 | * |
|
@@ 63-70 (lines=8) @@ | ||
60 | /** |
|
61 | * |
|
62 | */ |
|
63 | public function testCanDelete() |
|
64 | { |
|
65 | $object = $this->objFromFixture(Block::class, 'default'); |
|
66 | $admin = $this->objFromFixture(Member::class, 'admin'); |
|
67 | $this->assertTrue($object->canDelete($admin)); |
|
68 | $member = $this->objFromFixture(Member::class, 'default'); |
|
69 | $this->assertFalse($object->canDelete($member)); |
|
70 | } |
|
71 | ||
72 | /** |
|
73 | * |
|
@@ 75-82 (lines=8) @@ | ||
72 | /** |
|
73 | * |
|
74 | */ |
|
75 | public function testCanCreate() |
|
76 | { |
|
77 | $object = $this->objFromFixture(Block::class, 'default'); |
|
78 | $admin = $this->objFromFixture(Member::class, 'admin'); |
|
79 | $this->assertTrue($object->canCreate($admin)); |
|
80 | $member = $this->objFromFixture(Member::class, 'default'); |
|
81 | $this->assertFalse($object->canCreate($member)); |
|
82 | } |
|
83 | ||
84 | /** |
|
85 | * |