Ensured API key is tracked when creating short URLs from the REST API

This commit is contained in:
Alejandro Celaya
2020-11-07 10:23:08 +01:00
parent 7c9f572eb1
commit 27bc8d4823
4 changed files with 31 additions and 11 deletions

View File

@@ -78,7 +78,7 @@ class SingleStepCreateShortUrlActionTest extends TestCase
return $argument;
}),
[],
ShortUrlMeta::createEmpty(),
ShortUrlMeta::fromRawData(['apiKey' => 'abc123']),
)->willReturn(new ShortUrl(''));
$resp = $this->action->handle($request);