mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Fixes ACCOUNTS-5GP. Use container rather then components map to obtain Mojang's API
This commit is contained in:
@@ -37,7 +37,7 @@ class PullMojangUsernameTest extends TestCase {
|
||||
$mockApi = $this->createMock(MojangApi::class);
|
||||
$this->mockedMethod = $mockApi->method('usernameToUUID');
|
||||
|
||||
Yii::$app->set(MojangApi::class, $mockApi);
|
||||
Yii::$container->set(MojangApi::class, $mockApi);
|
||||
}
|
||||
|
||||
public function testCreateFromAccount() {
|
||||
|
Reference in New Issue
Block a user