Skip to content

Commit b4dbb50

Browse files
committed
Changed Tests
1 parent b3bd17d commit b4dbb50

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/Unit/Api/MemberSkillsTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
namespace SkillDisplay\PHPToolKit\Tests\Unit\Api;
66

77
use GuzzleHttp\Psr7\Request;
8+
use GuzzleHttp\Psr7\Utils;
89
use Prophecy\Argument;
910
use SkillDisplay\PHPToolKit\Api\MemberSkills;
1011
use SkillDisplay\PHPToolKit\Configuration\Settings;
@@ -53,7 +54,7 @@ public function fetchedEntityFromApi()
5354
}))->willReturn($response->reveal());
5455

5556
$response->getStatusCode()->willReturn(200);
56-
$response->getBody()->willReturn('[{"uid": 1},{"uid": 2}]');
57+
$response->getBody()->willReturn(Utils::streamFor('[{"uid": 1},{"uid": 2}]'));
5758

5859
$subject = new MemberSkills($settings->reveal(), $client->reveal());
5960
$skills = $subject->getMemberSkillsById(10);

tests/Unit/Api/OrganisationTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
namespace SkillDisplay\PHPToolKit\Tests\Unit\Api;
66

77
use GuzzleHttp\Psr7\Request;
8+
use GuzzleHttp\Psr7\Utils;
89
use Prophecy\Argument;
910
use SkillDisplay\PHPToolKit\Api\Organisation;
1011
use SkillDisplay\PHPToolKit\Api\SkillSet;
@@ -54,7 +55,7 @@ public function fetchOrganisationStatistic()
5455
}))->willReturn($response->reveal());
5556

5657
$response->getStatusCode()->willReturn(200);
57-
$response->getBody()->willReturn('{"uid":10}');
58+
$response->getBody()->willReturn(Utils::streamFor('{"uid":10}'));
5859

5960
$subject = new Organisation(
6061
$settings->reveal(),

0 commit comments

Comments
 (0)