Skip to content

Commit 2ee504d

Browse files
committed
OXDEV-9641 Remove dysfunctional deprecated method call from TestCase
1 parent 8af954a commit 2ee504d

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

tests/Integration/TestCase.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,25 +126,21 @@ protected function setAuthToken(string $token): void
126126
$tokenService = static::$container->get(Token::class);
127127
$refClass = new ReflectionClass(Token::class);
128128
$prop = $refClass->getProperty('token');
129-
$prop->setAccessible(true);
130129
$prop->setValue($tokenService, $authToken);
131130

132131
$authentication = static::$container->get(Authentication::class);
133132
$refClass = new ReflectionClass(Authentication::class);
134133
$prop = $refClass->getProperty('tokenService');
135-
$prop->setAccessible(true);
136134
$prop->setValue($authentication, $tokenService);
137135

138136
$authorization = static::$container->get(Authorization::class);
139137
$refClass = new ReflectionClass(Authorization::class);
140138
$prop = $refClass->getProperty('tokenService');
141-
$prop->setAccessible(true);
142139
$prop->setValue($authorization, $tokenService);
143140

144141
$schema = static::$container->get(SchemaFactory::class);
145142
$refClass = new ReflectionClass(SchemaFactory::class);
146143
$prop = $refClass->getProperty('schema');
147-
$prop->setAccessible(true);
148144
$prop->setValue($schema, null);
149145
}
150146

0 commit comments

Comments
 (0)