mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-03 18:04:08 +02:00
dont fetch data from steam
This commit is contained in:
parent
9c963fd3af
commit
71db345f9b
5 changed files with 18 additions and 6 deletions
|
|
@ -1,4 +1,5 @@
|
|||
<?php namespace Demostf\API\Test\Providers;
|
||||
<?php declare(strict_types = 1);
|
||||
namespace Demostf\API\Test\Providers;
|
||||
|
||||
use Demostf\API\Demo\ChatMessage;
|
||||
use Demostf\API\Providers\ChatProvider;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
<?php namespace Demostf\API\Test\Providers;
|
||||
<?php declare(strict_types = 1);
|
||||
namespace Demostf\API\Test\Providers;
|
||||
|
||||
use Demostf\API\Providers\InfoProvider;
|
||||
use Demostf\API\Test\TestCase;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
<?php namespace Demostf\API\Test\Providers;
|
||||
<?php declare(strict_types = 1);
|
||||
namespace Demostf\API\Test\Providers;
|
||||
|
||||
use Demostf\API\Providers\UserProvider;
|
||||
use Demostf\API\Test\TestCase;
|
||||
|
|
@ -13,7 +14,13 @@ class UserProviderTest extends TestCase {
|
|||
public function setUp() {
|
||||
parent::setUp();
|
||||
|
||||
$this->steamId = new \SteamId('76561198024494988');
|
||||
$this->steamId = new \SteamId('76561198024494988', false);
|
||||
$closure = \Closure::bind(function($steamId) {
|
||||
$steamId->nickname = 'Icewind';
|
||||
$steamId->imageUrl = 'foo';
|
||||
}, null, $this->steamId);
|
||||
$closure($this->steamId);
|
||||
|
||||
$this->provider = new UserProvider($this->getDatabaseConnection(), $this->getRandomGenerator());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue