Reduced amount of dead lines in tests

This commit is contained in:
Alejandro Celaya
2019-02-17 20:28:34 +01:00
parent 1bcd03b150
commit 687a1cc9c7
100 changed files with 481 additions and 938 deletions

View File

@@ -40,9 +40,7 @@ class SingleStepCreateShortUrlActionTest extends TestCase
);
}
/**
* @test
*/
/** @test */
public function errorResponseIsReturnedIfInvalidApiKeyIsProvided()
{
$request = (new ServerRequest())->withQueryParams(['apiKey' => 'abc123']);
@@ -58,9 +56,7 @@ class SingleStepCreateShortUrlActionTest extends TestCase
$findApiKey->shouldHaveBeenCalled();
}
/**
* @test
*/
/** @test */
public function errorResponseIsReturnedIfNoUrlIsProvided()
{
$request = (new ServerRequest())->withQueryParams(['apiKey' => 'abc123']);
@@ -76,9 +72,7 @@ class SingleStepCreateShortUrlActionTest extends TestCase
$findApiKey->shouldHaveBeenCalled();
}
/**
* @test
*/
/** @test */
public function properDataIsPassedWhenGeneratingShortCode()
{
$request = (new ServerRequest())->withQueryParams([