Changed Tests

This commit is contained in:
lisam 2023-07-06 15:12:00 +02:00
parent b3bd17d10a
commit b4dbb508db
2 changed files with 4 additions and 2 deletions

View file

@ -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);

View file

@ -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(),