Skip to content

Commit

Permalink
Merge pull request #76 from KnightAR/FixTests
Browse files Browse the repository at this point in the history
Fix tests
  • Loading branch information
spiritix authored Nov 14, 2019
2 parents 7a2690c + b3c9a3c commit 2320216
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"phpunit/phpunit": "~7.0",
"codeclimate/php-test-reporter": "dev-master",
"orchestra/testbench": "~3.7",
"laracasts/TestDummy": "~2.3",
"laracasts/testdummy": "~2.3",
"mockery/mockery": "^1.0"
},
"suggest": {
Expand Down
3 changes: 1 addition & 2 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false">
stopOnFailure="false">
<logging>
<log type="coverage-clover" target="build/logs/clover.xml"/>
</logging>
Expand Down
2 changes: 1 addition & 1 deletion tests/CacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class CacheTest extends TestCase
{
private $cache;

public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/EncoderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class EncoderTest extends TestCase
{
private $encoder;

public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/HasherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class HasherTest extends TestCase
{
private $hasher;

public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/IntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class IntegrationTest extends TestCase
{
private $cache;

public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/InvalidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class InvalidatorTest extends TestCase

private $invalidator;

public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/ManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class ManagerTest extends TestCase
{
private $stub;

public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/RedisTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class RedisTest extends TestCase
{
private $redis;

public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
2 changes: 1 addition & 1 deletion tests/TaggerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class TaggerTest extends TestCase

private $redis;

public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down
6 changes: 4 additions & 2 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function __construct($name = null, array $data = [], $dataName = '')
$this->useArtisan = version_compare('5.4', Application::VERSION, '>');
}

public function setUp()
public function setUp(): void
{
parent::setUp();

Expand All @@ -41,7 +41,7 @@ public function setUp()
DB::beginTransaction();
}

public function tearDown()
public function tearDown(): void
{
DB::rollback();

Expand All @@ -67,5 +67,7 @@ protected function getEnvironmentSetUp($app)
'database' => ':memory:',
'prefix' => '',
]);
//If the database redis has a prefix, Lada fails to flush the cache
$app['config']->set('database.redis.options.prefix', false);
}
}

0 comments on commit 2320216

Please sign in to comment.