We will work on Apr 26th (Saturday) and will be off from Apr 30th (Wednesday) until May 2nd (Friday) for public holiday in our country

Commit d96bf105 authored by marcoss's avatar marcoss

Expose last 4 digits of API keys

To help debug issues, expose the last 4 digits of API keys.
parent 8beab8e2
...@@ -25,7 +25,7 @@ class ApiKeyEndingTest extends \PHPUnit\Framework\TestCase ...@@ -25,7 +25,7 @@ class ApiKeyEndingTest extends \PHPUnit\Framework\TestCase
$this->apiKeyEndingComment = new ApiKeyEnding($encryptor); $this->apiKeyEndingComment = new ApiKeyEnding($encryptor);
} }
public function testSomething() public function testCommentReturnsJustTheEnding()
{ {
$this->assertEquals('API key ending with: <strong>1234</strong>', $this->apiKeyEndingComment->getCommentText('4321')); $this->assertEquals('API key ending with: <strong>1234</strong>', $this->apiKeyEndingComment->getCommentText('4321'));
$this->assertEquals('API key ending with: <strong>qwer</strong>', $this->apiKeyEndingComment->getCommentText('asdfasdfasdf')); $this->assertEquals('API key ending with: <strong>qwer</strong>', $this->apiKeyEndingComment->getCommentText('asdfasdfasdf'));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment