Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: v3 .NET #144

Merged
merged 16 commits into from
Jun 8, 2023
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'origin/v3' into feat-v3-dotnet
  • Loading branch information
Meldiron committed Feb 7, 2023
commit 657f40a1f62cab32a96a09496a6431c977078ce4
15 changes: 15 additions & 0 deletions tests/BaseV3.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,5 +320,20 @@ public function testLogs(): void
self::assertStringContainsString('Error log', $response['headers']['x-open-runtimes-errors']);
self::assertStringNotContainsString('Native log', $response['headers']['x-open-runtimes-logs']);
self::assertStringContainsString('Unsupported log noticed.', $response['headers']['x-open-runtimes-logs']);
self::assertStringContainsString('{"objectKey":"objectValue"}', $response['headers']['x-open-runtimes-logs']);
self::assertStringContainsString('["arrayValue"]', $response['headers']['x-open-runtimes-logs']);
}

public function testLibrary(): void
{
$response = $this->execute(headers: ['x-action' => 'library'], body: '5');
self::assertEquals(200, $response['code']);

$body = \json_decode($response['body'], true);

self::assertEquals('1', $body['todo']['userId']);
self::assertEquals('5', $body['todo']['id']);
self::assertEquals('laboriosam mollitia et enim quasi adipisci quia provident illum', $body['todo']['title']);
self::assertEquals(false, $body['todo']['completed']);
}
}
You are viewing a condensed version of this merge commit. You can view the full changes here.