mirror of
https://github.com/SkillDisplay/PHPToolKit.git
synced 2024-11-24 16:46:09 +01:00
Changed Tests
This commit is contained in:
parent
b3bd17d10a
commit
b4dbb508db
2 changed files with 4 additions and 2 deletions
|
@ -5,6 +5,7 @@ declare(strict_types=1);
|
|||
namespace SkillDisplay\PHPToolKit\Tests\Unit\Api;
|
||||
|
||||
use GuzzleHttp\Psr7\Request;
|
||||
use GuzzleHttp\Psr7\Utils;
|
||||
use Prophecy\Argument;
|
||||
use SkillDisplay\PHPToolKit\Api\MemberSkills;
|
||||
use SkillDisplay\PHPToolKit\Configuration\Settings;
|
||||
|
@ -53,7 +54,7 @@ class MemberSkillsTest extends TestCase
|
|||
}))->willReturn($response->reveal());
|
||||
|
||||
$response->getStatusCode()->willReturn(200);
|
||||
$response->getBody()->willReturn('[{"uid": 1},{"uid": 2}]');
|
||||
$response->getBody()->willReturn(Utils::streamFor('[{"uid": 1},{"uid": 2}]'));
|
||||
|
||||
$subject = new MemberSkills($settings->reveal(), $client->reveal());
|
||||
$skills = $subject->getMemberSkillsById(10);
|
||||
|
|
|
@ -5,6 +5,7 @@ declare(strict_types=1);
|
|||
namespace SkillDisplay\PHPToolKit\Tests\Unit\Api;
|
||||
|
||||
use GuzzleHttp\Psr7\Request;
|
||||
use GuzzleHttp\Psr7\Utils;
|
||||
use Prophecy\Argument;
|
||||
use SkillDisplay\PHPToolKit\Api\Organisation;
|
||||
use SkillDisplay\PHPToolKit\Api\SkillSet;
|
||||
|
@ -54,7 +55,7 @@ class OrganisationTest extends TestCase
|
|||
}))->willReturn($response->reveal());
|
||||
|
||||
$response->getStatusCode()->willReturn(200);
|
||||
$response->getBody()->willReturn('{"uid":10}');
|
||||
$response->getBody()->willReturn(Utils::streamFor('{"uid":10}'));
|
||||
|
||||
$subject = new Organisation(
|
||||
$settings->reveal(),
|
||||
|
|
Loading…
Reference in a new issue