Passed
Pull Request — master (#1312)
by Michael
08:36 queued 02:22
created

PermissionTest::testCheckPermission()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 5
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Xmf\Test\Module\Helper;
6
7
use PHPUnit\Framework\TestCase;
0 ignored issues
show
Bug introduced by
The type PHPUnit\Framework\TestCase was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
8
use Xmf\Module\Helper\Permission;
9
10
require_once dirname(__DIR__, 5) . '/init_new.php';
11
12
class PermissionTest extends TestCase
13
{
14
    /**
15
     * @var Permission
16
     */
17
    protected $object;
18
19
    /**
20
     * Sets up the fixture, for example, opens a network connection.
21
     * This method is called before a test is executed.
22
     */
23
    protected function setUp(): void
24
    {
25
        $this->object = new Permission();
26
    }
27
28
    /**
29
     * Tears down the fixture, for example, closes a network connection.
30
     * This method is called after a test is executed.
31
     */
32
    protected function tearDown(): void
33
    {
34
    }
35
36
    public function testInit()
37
    {
38
        // Remove the following lines when you implement this test.
39
        $this->markTestIncomplete(
40
            'This test has not been implemented yet.'
41
        );
42
    }
43
44
    public function testCheckPermission()
45
    {
46
        // Remove the following lines when you implement this test.
47
        $this->markTestIncomplete(
48
            'This test has not been implemented yet.'
49
        );
50
    }
51
52
    public function testCheckPermissionRedirect()
53
    {
54
        // Remove the following lines when you implement this test.
55
        $this->markTestIncomplete(
56
            'This test has not been implemented yet.'
57
        );
58
    }
59
60
    public function testGetUserGroups()
61
    {
62
        // Remove the following lines when you implement this test.
63
        $this->markTestIncomplete(
64
            'This test has not been implemented yet.'
65
        );
66
    }
67
68
    public function testGetGroupsForItem()
69
    {
70
        // Remove the following lines when you implement this test.
71
        $this->markTestIncomplete(
72
            'This test has not been implemented yet.'
73
        );
74
    }
75
76
    public function testSavePermissionForItem()
77
    {
78
        // Remove the following lines when you implement this test.
79
        $this->markTestIncomplete(
80
            'This test has not been implemented yet.'
81
        );
82
    }
83
84
    public function testDeletePermissionForItem()
85
    {
86
        // Remove the following lines when you implement this test.
87
        $this->markTestIncomplete(
88
            'This test has not been implemented yet.'
89
        );
90
    }
91
92
    public function testGetGroupSelectFormForItem()
93
    {
94
        // Remove the following lines when you implement this test.
95
        $this->markTestIncomplete(
96
            'This test has not been implemented yet.'
97
        );
98
    }
99
100
    public function testDefaultFieldName()
101
    {
102
        // Remove the following lines when you implement this test.
103
        $this->markTestIncomplete(
104
            'This test has not been implemented yet.'
105
        );
106
    }
107
}
108