-
-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathUsersTest.php
More file actions
30 lines (25 loc) · 700 Bytes
/
Copy pathUsersTest.php
File metadata and controls
30 lines (25 loc) · 700 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
namespace Coderjerk\Tests;
use Coderjerk\BirdElephant\Users;
use GuzzleHttp\Exception\GuzzleException;
class UsersTest extends BaseTest
{
protected array $credentials;
protected string $username;
protected Users $users;
protected function setUp(): void
{
parent::setUp();
$this->credentials = $this->setUpCredentials();
$this->username = 'coderjerk';
$this->users = new Users($this->credentials, $this->username);
}
/**
* @throws GuzzleException
*/
public function testLookup()
{
$users = $this->users->lookup(['coderjerk', 'dril', 'spanish__eddie']);
self::assertIsArray($users->data);
}
}