Skip to content

Commit ed08e21

Browse files
committed
[Tests] Remove some unused fixtures
1 parent cefb384 commit ed08e21

File tree

2 files changed

+0
-68
lines changed

2 files changed

+0
-68
lines changed

Tests/Authentication/Token/AbstractTokenTest.php

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -94,66 +94,6 @@ public function testSetUser($user)
9494
}
9595
}
9696

97-
class TestUser
98-
{
99-
protected $name;
100-
101-
public function __construct($name)
102-
{
103-
$this->name = $name;
104-
}
105-
106-
public function __toString(): string
107-
{
108-
return $this->name;
109-
}
110-
}
111-
112-
class SerializableUser implements UserInterface
113-
{
114-
private $roles;
115-
private $name;
116-
117-
public function __construct($name, array $roles = [])
118-
{
119-
$this->name = $name;
120-
$this->roles = $roles;
121-
}
122-
123-
public function getUsername(): string
124-
{
125-
return $this->name;
126-
}
127-
128-
public function getUserIdentifier(): string
129-
{
130-
return $this->name;
131-
}
132-
133-
public function getPassword(): ?string
134-
{
135-
return '***';
136-
}
137-
138-
public function getRoles(): array
139-
{
140-
if (empty($this->roles)) {
141-
return ['ROLE_USER'];
142-
}
143-
144-
return $this->roles;
145-
}
146-
147-
public function eraseCredentials()
148-
{
149-
}
150-
151-
public function getSalt(): ?string
152-
{
153-
return null;
154-
}
155-
}
156-
15797
class ConcreteToken extends AbstractToken
15898
{
15999
private $credentials = 'credentials_value';

Tests/SecurityTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,3 @@ private function createContainer($serviceId, $serviceObject)
9393
return $container;
9494
}
9595
}
96-
97-
class StringishUser
98-
{
99-
public function __toString(): string
100-
{
101-
return 'stringish_user';
102-
}
103-
}

0 commit comments

Comments
 (0)