Skip to content
Snippets Groups Projects
Commit 5d5e7c95 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

adjust test and cast i18n objects to string, fixes #1164

Closes #1164

Merge request studip/studip!693
parent 00b4e32c
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@ class InstituteMember extends SchemaProvider
public function getAttributes($resource, ContextInterface $context): iterable
{
$defaultNull = function ($key) use ($resource) {
return $resource->$key ?: null;
return (string) $resource->$key ?: null;
};
$attributes = [
......
......@@ -23,7 +23,7 @@ class InstitutesMembershipShowTest extends \Codeception\Test\Unit
public function testShouldShowMemberships()
{
$credentials = $this->tester->getCredentialsForTestDozent();
$membershipId = '205f3efb7997a0fc9755da2b535038da_2560f7c7674942a7dce8eeb238e15d93';
$membershipId = '1';
$app = $this->tester->createApp($credentials, 'get', '/institute-memberships/{id}', InstituteMembershipsShow::class);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment