Skip to content

Commit

Permalink
Introduce CommonStoreMultipleTestsTrait
Browse files Browse the repository at this point in the history
  • Loading branch information
overclokk committed Aug 15, 2023
1 parent 960054f commit b8f5033
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 196 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
"rector/rector": "^0.15.17",
"infection/infection": "^0.26.6",
"infection/codeception-adapter": "^0.4.1",
"italystrap/debug": "^2.1"
"italystrap/debug": "^2.1",
"italystrap/storage-tests": "dev-master"
},
"autoload": {
"psr-4": {
Expand Down
3 changes: 2 additions & 1 deletion tests/src/CacheTestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
namespace ItalyStrap\Tests;

use ItalyStrap\Storage\Cache;
use ItalyStrap\StorageTests\CommonStoreMultipleTestsTrait;

trait CacheTestTrait
{
use NormalizeTtlTestTrait, CommonMultipleProviderTrait, CommonTrait;
use NormalizeTtlTestTrait, CommonStoreMultipleTestsTrait;

/**
* @test
Expand Down
56 changes: 0 additions & 56 deletions tests/src/CommonMultipleProviderTrait.php

This file was deleted.

135 changes: 0 additions & 135 deletions tests/src/CommonTrait.php

This file was deleted.

3 changes: 2 additions & 1 deletion tests/src/ModTestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
namespace ItalyStrap\Tests;

use ItalyStrap\Storage\Mod;
use ItalyStrap\StorageTests\CommonStoreMultipleTestsTrait;

trait ModTestTrait
{
use CommonTrait;
use CommonStoreMultipleTestsTrait;

/**
* @test
Expand Down
4 changes: 3 additions & 1 deletion tests/src/OptionTestsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@

namespace ItalyStrap\Tests;

use ItalyStrap\StorageTests\CommonStoreMultipleTestsTrait;

trait OptionTestsTrait
{
use CommonTrait;
use CommonStoreMultipleTestsTrait;

/**
* @test
Expand Down
3 changes: 2 additions & 1 deletion tests/src/TransientTestsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
namespace ItalyStrap\Tests;

use ItalyStrap\Storage\Transient;
use ItalyStrap\StorageTests\CommonStoreMultipleTestsTrait;

trait TransientTestsTrait
{
use ValidateKeyLenghtTestTrait, NormalizeTtlTestTrait, CommonMultipleProviderTrait, CommonTrait;
use ValidateKeyLenghtTestTrait, NormalizeTtlTestTrait, CommonStoreMultipleTestsTrait;

/**
* @test
Expand Down

0 comments on commit b8f5033

Please sign in to comment.