@@ 78-87 (lines=10) @@ | ||
75 | /** |
|
76 | * @test |
|
77 | */ |
|
78 | public function willAbstainWhenRequestHasNoSwaggerPath() |
|
79 | { |
|
80 | /** @var TokenInterface $token */ |
|
81 | $token = $this->getMockForAbstractClass(TokenInterface::class); |
|
82 | ||
83 | $this->assertEquals( |
|
84 | VoterInterface::ACCESS_ABSTAIN, |
|
85 | $this->voter->vote($token, $this->createRequest([]), [RequestAuthorizationListener::ATTRIBUTE]) |
|
86 | ); |
|
87 | } |
|
88 | ||
89 | /** |
|
90 | * @test |
|
@@ 92-101 (lines=10) @@ | ||
89 | /** |
|
90 | * @test |
|
91 | */ |
|
92 | public function willAbstainWhenAttributesNotFromListener() |
|
93 | { |
|
94 | /** @var TokenInterface $token */ |
|
95 | $token = $this->getMockForAbstractClass(TokenInterface::class); |
|
96 | ||
97 | $this->assertEquals( |
|
98 | VoterInterface::ACCESS_ABSTAIN, |
|
99 | $this->voter->vote($token, $this->createRequest([]), ['something else']) |
|
100 | ); |
|
101 | } |
|
102 | ||
103 | /** |
|
104 | * @test |