Skip to content

Commit

Permalink
Abstract test case classes with "Test" suffix are deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-helldar committed Apr 24, 2023
1 parent ddaae1d commit 6692d07
Show file tree
Hide file tree
Showing 54 changed files with 106 additions and 106 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace Tests\Cache\NotWhen\Arrayables\Many\Arr;

use Tests\Cache\NotWhen\BaseTest;
use Tests\Cache\NotWhen\Base;
use Tests\Fixtures\Many\DragonCodeArrayable;

class DragonCodeTest extends BaseTest
class DragonCode extends Base
{
protected $value = [
'foo' => 'Foo',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace Tests\Cache\NotWhen\Arrayables\Many\Arr;

use Tests\Cache\NotWhen\BaseTest;
use Tests\Cache\NotWhen\Base;
use Tests\Fixtures\Many\IlluminateArrayable;

class IlluminateTest extends BaseTest
class Illuminate extends Base
{
protected $value = [
'foo' => 'Foo',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace Tests\Cache\NotWhen\Arrayables\Many\Arr;

use Tests\Cache\NotWhen\BaseTest;
use Tests\Cache\NotWhen\Base;
use Tests\Fixtures\Many\MixedArrayable;

class MixedTest extends BaseTest
class Mixed extends Base
{
protected $value = [
'foo' => 'Foo',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace Tests\Cache\NotWhen\Arrayables\Many\Files;

use Tests\Cache\NotWhen\BaseTest;
use Tests\Cache\NotWhen\Base;
use Tests\Fixtures\Many\DragonCodeArrayable;

class DragonCodeTest extends BaseTest
class DragonCode extends Base
{
protected $cache = 'file';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace Tests\Cache\NotWhen\Arrayables\Many\Files;

use Tests\Cache\NotWhen\BaseTest;
use Tests\Cache\NotWhen\Base;
use Tests\Fixtures\Many\IlluminateArrayable;

class IlluminateTest extends BaseTest
class Illuminate extends Base
{
protected $cache = 'file';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace Tests\Cache\NotWhen\Arrayables\Many\Files;

use Tests\Cache\NotWhen\BaseTest;
use Tests\Cache\NotWhen\Base;
use Tests\Fixtures\Many\MixedArrayable;

class MixedTest extends BaseTest
class Mixed extends Base
{
protected $cache = 'file';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace Tests\Cache\NotWhen\Arrayables\Many\Redis;

use Tests\Cache\NotWhen\BaseTest;
use Tests\Cache\NotWhen\Base;
use Tests\Fixtures\Many\DragonCodeArrayable;

class DragonCodeTest extends BaseTest
class DragonCode extends Base
{
protected $cache = 'redis';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace Tests\Cache\NotWhen\Arrayables\Many\Redis;

use Tests\Cache\NotWhen\BaseTest;
use Tests\Cache\NotWhen\Base;
use Tests\Fixtures\Many\IlluminateArrayable;

class IlluminateTest extends BaseTest
class Illuminate extends Base
{
protected $cache = 'redis';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace Tests\Cache\NotWhen\Arrayables\Many\Redis;

use Tests\Cache\NotWhen\BaseTest;
use Tests\Cache\NotWhen\Base;
use Tests\Fixtures\Many\MixedArrayable;

class MixedTest extends BaseTest
class Mixed extends Base
{
protected $cache = 'redis';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace Tests\Cache\NotWhen\Arrayables\Simple\Arr;

use Tests\Cache\NotWhen\BaseTest;
use Tests\Cache\NotWhen\Base;
use Tests\Fixtures\Simple\DragonCodeArrayable;

class DragonCodeTest extends BaseTest
class DragonCode extends Base
{
protected $value = [
'foo' => 'Foo',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace Tests\Cache\NotWhen\Arrayables\Simple\Arr;

use Tests\Cache\NotWhen\BaseTest;
use Tests\Cache\NotWhen\Base;
use Tests\Fixtures\Simple\IlluminateArrayable;

class IlluminateTest extends BaseTest
class Illuminate extends Base
{
protected $value = [
'foo' => 'Foo',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace Tests\Cache\NotWhen\Arrayables\Simple\Files;

use Tests\Cache\NotWhen\BaseTest;
use Tests\Cache\NotWhen\Base;
use Tests\Fixtures\Simple\DragonCodeArrayable;

class DragonCodeTest extends BaseTest
class DragonCode extends Base
{
protected $cache = 'file';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace Tests\Cache\NotWhen\Arrayables\Simple\Files;

use Tests\Cache\NotWhen\BaseTest;
use Tests\Cache\NotWhen\Base;
use Tests\Fixtures\Simple\IlluminateArrayable;

class IlluminateTest extends BaseTest
class Illuminate extends Base
{
protected $cache = 'file';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace Tests\Cache\NotWhen\Arrayables\Simple\Redis;

use Tests\Cache\NotWhen\BaseTest;
use Tests\Cache\NotWhen\Base;
use Tests\Fixtures\Simple\DragonCodeArrayable;

class DragonCodeTest extends BaseTest
class DragonCode extends Base
{
protected $cache = 'redis';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace Tests\Cache\NotWhen\Arrayables\Simple\Redis;

use Tests\Cache\NotWhen\BaseTest;
use Tests\Cache\NotWhen\Base;
use Tests\Fixtures\Simple\IlluminateArrayable;

class IlluminateTest extends BaseTest
class Illuminate extends Base
{
protected $cache = 'redis';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Tests\TestCase;

abstract class BaseTest extends TestCase
abstract class Base extends TestCase
{
protected $when = false;
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

namespace Tests\Cache\NotWhen\Callables;

use Tests\Cache\NotWhen\BaseTest;
use Tests\Cache\NotWhen\Base;

class ArrayTest extends BaseTest
class ArrayTest extends Base
{
protected $cache = 'array';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

namespace Tests\Cache\NotWhen\Callables;

use Tests\Cache\NotWhen\BaseTest;
use Tests\Cache\NotWhen\Base;

class FileTest extends BaseTest
class File extends Base
{
protected $cache = 'file';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
namespace Tests\Cache\NotWhen\Callables;

use DragonCode\Cache\Services\Cache;
use Tests\Cache\NotWhen\BaseTest;
use Tests\Cache\NotWhen\Base;

class MultiCallTest extends BaseTest
class MultiCall extends Base
{
protected $cache = 'redis';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

namespace Tests\Cache\NotWhen\Callables;

use Tests\Cache\NotWhen\BaseTest;
use Tests\Cache\NotWhen\Base;

class RedisTest extends BaseTest
class Redis extends Base
{
protected $cache = 'redis';

Expand Down
4 changes: 2 additions & 2 deletions tests/Cache/NotWhen/Dto/ArrayTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace Tests\Cache\NotWhen\Dto;

use Tests\Cache\NotWhen\BaseTest;
use Tests\Cache\NotWhen\Base;
use Tests\Fixtures\Concerns\Dtoable;

class ArrayTest extends BaseTest
class ArrayTest extends Base
{
use Dtoable;

Expand Down
4 changes: 2 additions & 2 deletions tests/Cache/NotWhen/Dto/FileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace Tests\Cache\NotWhen\Dto;

use Tests\Cache\NotWhen\BaseTest;
use Tests\Cache\NotWhen\Base;
use Tests\Fixtures\Concerns\Dtoable;

class FileTest extends BaseTest
class FileTest extends Base
{
use Dtoable;

Expand Down
4 changes: 2 additions & 2 deletions tests/Cache/NotWhen/Dto/RedisTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace Tests\Cache\NotWhen\Dto;

use Tests\Cache\NotWhen\BaseTest;
use Tests\Cache\NotWhen\Base;
use Tests\Fixtures\Concerns\Dtoable;

class RedisTest extends BaseTest
class RedisTest extends Base
{
use Dtoable;

Expand Down
4 changes: 2 additions & 2 deletions tests/Cache/NotWhen/Simple/ArrayTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

namespace Tests\Cache\NotWhen\Simple;

use Tests\Cache\NotWhen\BaseTest;
use Tests\Cache\NotWhen\Base;

class ArrayTest extends BaseTest
class ArrayTest extends Base
{
protected $cache = 'array';

Expand Down
4 changes: 2 additions & 2 deletions tests/Cache/NotWhen/Simple/FileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

namespace Tests\Cache\NotWhen\Simple;

use Tests\Cache\NotWhen\BaseTest;
use Tests\Cache\NotWhen\Base;

class FileTest extends BaseTest
class FileTest extends Base
{
protected $cache = 'file';

Expand Down
4 changes: 2 additions & 2 deletions tests/Cache/NotWhen/Simple/MultiCallTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
namespace Tests\Cache\NotWhen\Simple;

use DragonCode\Cache\Services\Cache;
use Tests\Cache\NotWhen\BaseTest;
use Tests\Cache\NotWhen\Base;

class MultiCallTest extends BaseTest
class MultiCallTest extends Base
{
protected $cache = 'redis';

Expand Down
4 changes: 2 additions & 2 deletions tests/Cache/NotWhen/Simple/RedisTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
namespace Tests\Cache\NotWhen\Simple;

use Illuminate\Support\Facades\Auth;
use Tests\Cache\NotWhen\BaseTest;
use Tests\Cache\NotWhen\Base;
use Tests\Fixtures\Models\User;

class RedisTest extends BaseTest
class RedisTest extends Base
{
protected $cache = 'redis';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace Tests\Cache\When\Arrayables\Many\Arr;

use Tests\Cache\When\BaseTest;
use Tests\Cache\When\Base;
use Tests\Fixtures\Many\DragonCodeArrayable;

class DragonCodeTest extends BaseTest
class DragonCode extends Base
{
protected $value = [
'foo' => 'Foo',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace Tests\Cache\When\Arrayables\Many\Arr;

use Tests\Cache\When\BaseTest;
use Tests\Cache\When\Base;
use Tests\Fixtures\Many\IlluminateArrayable;

class IlluminateTest extends BaseTest
class Illuminate extends Base
{
protected $value = [
'foo' => 'Foo',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace Tests\Cache\When\Arrayables\Many\Arr;

use Tests\Cache\When\BaseTest;
use Tests\Cache\When\Base;
use Tests\Fixtures\Many\MixedArrayable;

class MixedTest extends BaseTest
class Mixed extends Base
{
protected $value = [
'foo' => 'Foo',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace Tests\Cache\When\Arrayables\Many\Files;

use Tests\Cache\When\BaseTest;
use Tests\Cache\When\Base;
use Tests\Fixtures\Many\DragonCodeArrayable;

class DragonCodeTest extends BaseTest
class DragonCode extends Base
{
protected $cache = 'file';

Expand Down
Loading

0 comments on commit 6692d07

Please sign in to comment.