Made test properties to be private instead of protected

This commit is contained in:
Alejandro Celaya
2018-11-20 19:37:22 +01:00
parent 0ae5a53d86
commit 5abd9d1a40
51 changed files with 90 additions and 90 deletions

View File

@@ -14,9 +14,9 @@ use Symfony\Component\Console\Tester\CommandTester;
class DisableKeyCommandTest extends TestCase
{
/** @var CommandTester */
protected $commandTester;
private $commandTester;
/** @var ObjectProphecy */
protected $apiKeyService;
private $apiKeyService;
public function setUp()
{

View File

@@ -16,9 +16,9 @@ use Symfony\Component\Console\Tester\CommandTester;
class GenerateKeyCommandTest extends TestCase
{
/** @var CommandTester */
protected $commandTester;
private $commandTester;
/** @var ObjectProphecy */
protected $apiKeyService;
private $apiKeyService;
public function setUp()
{

View File

@@ -14,9 +14,9 @@ use Symfony\Component\Console\Tester\CommandTester;
class ListKeysCommandTest extends TestCase
{
/** @var CommandTester */
protected $commandTester;
private $commandTester;
/** @var ObjectProphecy */
protected $apiKeyService;
private $apiKeyService;
public function setUp()
{

View File

@@ -14,7 +14,7 @@ use function str_split;
class GenerateCharsetCommandTest extends TestCase
{
/** @var CommandTester */
protected $commandTester;
private $commandTester;
public function setUp()
{

View File

@@ -21,7 +21,7 @@ use function substr_count;
class GeneratePreviewCommandTest extends TestCase
{
/** @var CommandTester */
protected $commandTester;
private $commandTester;
/** @var ObjectProphecy */
private $previewGenerator;
/** @var ObjectProphecy */

View File

@@ -18,9 +18,9 @@ use Symfony\Component\Console\Tester\CommandTester;
class GenerateShortUrlCommandTest extends TestCase
{
/** @var CommandTester */
protected $commandTester;
private $commandTester;
/** @var ObjectProphecy */
protected $urlShortener;
private $urlShortener;
public function setUp()
{

View File

@@ -21,9 +21,9 @@ use function strpos;
class GetVisitsCommandTest extends TestCase
{
/** @var CommandTester */
protected $commandTester;
private $commandTester;
/** @var ObjectProphecy */
protected $visitsTracker;
private $visitsTracker;
public function setUp()
{

View File

@@ -17,9 +17,9 @@ use Zend\Paginator\Paginator;
class ListShortUrlsCommandTest extends TestCase
{
/** @var CommandTester */
protected $commandTester;
private $commandTester;
/** @var ObjectProphecy */
protected $shortUrlService;
private $shortUrlService;
public function setUp()
{

View File

@@ -17,9 +17,9 @@ use const PHP_EOL;
class ResolveUrlCommandTest extends TestCase
{
/** @var CommandTester */
protected $commandTester;
private $commandTester;
/** @var ObjectProphecy */
protected $urlShortener;
private $urlShortener;
public function setUp()
{

View File

@@ -9,7 +9,7 @@ use Shlinkio\Shlink\CLI\ConfigProvider;
class ConfigProviderTest extends TestCase
{
/** @var ConfigProvider */
protected $configProvider;
private $configProvider;
public function setUp()
{

View File

@@ -16,7 +16,7 @@ use function array_merge;
class ApplicationFactoryTest extends TestCase
{
/** @var ApplicationFactory */
protected $factory;
private $factory;
public function setUp()
{