File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 5
5
namespace SkillDisplay \PHPToolKit \Tests \Unit \Api ;
6
6
7
7
use GuzzleHttp \Psr7 \Request ;
8
+ use GuzzleHttp \Psr7 \Utils ;
8
9
use Prophecy \Argument ;
9
10
use SkillDisplay \PHPToolKit \Api \MemberSkills ;
10
11
use SkillDisplay \PHPToolKit \Configuration \Settings ;
@@ -53,7 +54,7 @@ public function fetchedEntityFromApi()
53
54
}))->willReturn ($ response ->reveal ());
54
55
55
56
$ response ->getStatusCode ()->willReturn (200 );
56
- $ response ->getBody ()->willReturn ('[{"uid": 1},{"uid": 2}] ' );
57
+ $ response ->getBody ()->willReturn (Utils:: streamFor ( '[{"uid": 1},{"uid": 2}] ' ) );
57
58
58
59
$ subject = new MemberSkills ($ settings ->reveal (), $ client ->reveal ());
59
60
$ skills = $ subject ->getMemberSkillsById (10 );
Original file line number Diff line number Diff line change 5
5
namespace SkillDisplay \PHPToolKit \Tests \Unit \Api ;
6
6
7
7
use GuzzleHttp \Psr7 \Request ;
8
+ use GuzzleHttp \Psr7 \Utils ;
8
9
use Prophecy \Argument ;
9
10
use SkillDisplay \PHPToolKit \Api \Organisation ;
10
11
use SkillDisplay \PHPToolKit \Api \SkillSet ;
@@ -54,7 +55,7 @@ public function fetchOrganisationStatistic()
54
55
}))->willReturn ($ response ->reveal ());
55
56
56
57
$ response ->getStatusCode ()->willReturn (200 );
57
- $ response ->getBody ()->willReturn ('{"uid":10} ' );
58
+ $ response ->getBody ()->willReturn (Utils:: streamFor ( '{"uid":10} ' ) );
58
59
59
60
$ subject = new Organisation (
60
61
$ settings ->reveal (),
You can’t perform that action at this time.
0 commit comments