Skip to content

Commit

Permalink
www
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmet-yoti committed Feb 1, 2024
1 parent 74fa427 commit b508e72
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 3 deletions.
1 change: 1 addition & 0 deletions .php-cs-fixer.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"php":"8.1.27","version":"3.22.0:v3.22.0#92b019f6c8d79aa26349d0db7671d37440dc0ff3","indent":" ","lineEnding":"\n","rules":{"array_syntax":{"syntax":"short"},"no_unused_imports":true,"ordered_imports":{"imports_order":["const","class","function"]},"php_unit_fqcn_annotation":true,"phpdoc_return_self_reference":true,"phpdoc_scalar":true},"hashes":{"\/private\/var\/folders\/b6\/tqq9d7y54ll62fjfysz50ry80000gn\/T\/PHP CS Fixertemp_folder10691\/tests\/Aml\/ResultTest.php":"8e316453dc33c5bb9a1a2efa85e2b986","\/private\/var\/folders\/b6\/tqq9d7y54ll62fjfysz50ry80000gn\/T\/PHP CS Fixertemp_folder7761\/tests\/ShareUrl\/ResultTest.php":"7bc165333b7cd359bbc7e6b68daf4937","\/private\/var\/folders\/b6\/tqq9d7y54ll62fjfysz50ry80000gn\/T\/PHP CS Fixertemp_folder3932\/tests\/Profile\/ServiceTest.php":"5cfa20d1b5052c528fac1e640579f3a6","\/private\/var\/folders\/b6\/tqq9d7y54ll62fjfysz50ry80000gn\/T\/PHP CS Fixertemp_folder4414\/src\/Profile\/Service.php":"c631534c5f622cc343151190bdaf4a0a"}}
4 changes: 3 additions & 1 deletion src/Profile/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,10 @@ public function getActivityDetails(string $encryptedConnectToken): ActivityDetai
{
// Decrypt connect token
$token = $this->decryptConnectToken($encryptedConnectToken);

error_log("Mas->");
error_log($this->config->getApiUrl() ?? Constants::API_URL);
// Request endpoint
error_log(sprintf('/profile/%s', $token));
$response = (new RequestBuilder($this->config))
->withBaseUrl($this->config->getApiUrl() ?? Constants::API_URL)
->withEndpoint(sprintf('/profile/%s', $token))
Expand Down
6 changes: 5 additions & 1 deletion tests/Aml/ResultTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Yoti\Test\Aml;

use ArgumentCountError;
use PHPUnit\Framework\MockObject\MockObject;
use Psr\Http\Message\ResponseInterface;
use Yoti\Aml\Result;
use Yoti\Test\TestCase;
Expand All @@ -20,7 +21,10 @@ class ResultTest extends TestCase
* @var \Yoti\Aml\Result
*/
public $amlResult;

/**
* @var mixed|MockObject|ResponseInterface
*/
private $responseMock;
public function setup(): void
{
$this->responseMock = $this->createMock(ResponseInterface::class);
Expand Down
2 changes: 1 addition & 1 deletion tests/Profile/BaseProfileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public function testGetAttributeById()

$givenNamesAttribute = new ProtobufAttribute([
'name' => self::SOME_ATTRIBUTE,
'value' => utf8_decode('Alan'),
'value' => 'Alan',
'content_type' => self::CONTENT_TYPE_STRING,
]);
$newAttribute = AttributeConverter::convertToYotiAttribute($givenNamesAttribute);
Expand Down
6 changes: 6 additions & 0 deletions tests/Profile/Util/EncryptedDataTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ class EncrypedDataTest extends TestCase
*/
private $wrappedKey;

/**
* @var EncryptedDataProto
*/
private $encryptedDataProto;


/**
* Setup test data.
*/
Expand Down

0 comments on commit b508e72

Please sign in to comment.