Passed
Pull Request — master (#9)
by Iakov
02:59
created

AccessManagerTest::testCanUpdateResource()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Kami\ApiCoreBundle\Tests\Security;
4
5
use Doctrine\Common\Annotations\Reader;
6
use Kami\ApiCoreBundle\Security\AccessManager;
7
use PHPUnit\Framework\TestCase;
8
use Symfony\Component\Security\Csrf\TokenStorage\TokenStorageInterface;
9
10
class AccessManagerTest extends TestCase
11
{
12
    public function testCanBeConstructed()
13
    {
14
        $accessManager = new AccessManager(
15
            $this->createMock(TokenStorage::class),
0 ignored issues
show
Bug introduced by
The type Kami\ApiCoreBundle\Tests\Security\TokenStorage 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...
16
            $this->createMock(Reader::class)
17
        );
18
19
        $this->assertInstanceOf(AccessManager::class, $accessManager);
20
    }
21
22
23
    public function testCanUpdateProperty()
24
    {
25
26
    }
27
28
    public function testCanCreateProperty()
29
    {
30
31
    }
32
33
    public function testCanDeleteResource()
34
    {
35
36
    }
37
38
    public function testCanCreateResource()
39
    {
40
41
    }
42
43
44
    public function testCanAccessProperty()
45
    {
46
47
    }
48
49
    public function testCanAccessResource()
50
    {
51
52
    }
53
54
    public function testCanUpdateResource()
55
    {
56
57
    }
58
}
59