mirror of
https://github.com/DanielSiepmann/tracking.git
synced 2024-11-25 14:46:13 +01:00
Always use TestCase of testing framework
That way the framework can add extra logic like cleanup. We don't have to worry about such things.
This commit is contained in:
parent
b6d1189f4d
commit
165b110e01
11 changed files with 11 additions and 11 deletions
|
@ -23,7 +23,7 @@ namespace DanielSiepmann\Tracking\Tests\Unit\Domain\Model;
|
|||
|
||||
use DanielSiepmann\Tracking\Domain\Model\Extractor;
|
||||
use DanielSiepmann\Tracking\Domain\Model\HasUserAgent;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use TYPO3\TestingFramework\Core\Unit\UnitTestCase as TestCase;
|
||||
use Prophecy\PhpUnit\ProphecyTrait;
|
||||
|
||||
/**
|
||||
|
|
|
@ -22,7 +22,7 @@ namespace DanielSiepmann\Tracking\Tests\Unit\Domain\Model;
|
|||
*/
|
||||
|
||||
use DanielSiepmann\Tracking\Domain\Model\Pageview;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use TYPO3\TestingFramework\Core\Unit\UnitTestCase as TestCase;
|
||||
use Prophecy\PhpUnit\ProphecyTrait;
|
||||
use TYPO3\CMS\Core\Site\Entity\SiteLanguage;
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ namespace DanielSiepmann\Tracking\Tests\Unit\Domain\Model;
|
|||
*/
|
||||
|
||||
use DanielSiepmann\Tracking\Domain\Model\RecordRule;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use TYPO3\TestingFramework\Core\Unit\UnitTestCase as TestCase;
|
||||
|
||||
/**
|
||||
* @covers DanielSiepmann\Tracking\Domain\Model\RecordRule
|
||||
|
|
|
@ -22,7 +22,7 @@ namespace DanielSiepmann\Tracking\Tests\Unit\Domain\Model;
|
|||
*/
|
||||
|
||||
use DanielSiepmann\Tracking\Domain\Model\Recordview;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use TYPO3\TestingFramework\Core\Unit\UnitTestCase as TestCase;
|
||||
use Prophecy\PhpUnit\ProphecyTrait;
|
||||
use TYPO3\CMS\Core\Site\Entity\SiteLanguage;
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ namespace DanielSiepmann\Tracking\Tests\Unit\Domain\Pageview;
|
|||
|
||||
use DanielSiepmann\Tracking\Domain\Model\Pageview;
|
||||
use DanielSiepmann\Tracking\Domain\Pageview\Factory;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use TYPO3\TestingFramework\Core\Unit\UnitTestCase as TestCase;
|
||||
use Prophecy\PhpUnit\ProphecyTrait;
|
||||
use Prophecy\Prophet;
|
||||
use Psr\Http\Message\ServerRequestInterface;
|
||||
|
|
|
@ -24,11 +24,11 @@ namespace DanielSiepmann\Tracking\Tests\Unit\Domain\Recordview;
|
|||
use DanielSiepmann\Tracking\Domain\Model\RecordRule;
|
||||
use DanielSiepmann\Tracking\Domain\Model\Recordview;
|
||||
use DanielSiepmann\Tracking\Domain\Recordview\Factory;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Prophecy\PhpUnit\ProphecyTrait;
|
||||
use Psr\Http\Message\ServerRequestInterface;
|
||||
use TYPO3\CMS\Core\Routing\PageArguments;
|
||||
use TYPO3\CMS\Core\Site\Entity\SiteLanguage;
|
||||
use TYPO3\TestingFramework\Core\Unit\UnitTestCase as TestCase;
|
||||
|
||||
/**
|
||||
* @covers DanielSiepmann\Tracking\Domain\Recordview\Factory
|
||||
|
|
|
@ -25,7 +25,7 @@ use DanielSiepmann\Tracking\Domain\Model\Pageview as Model;
|
|||
use DanielSiepmann\Tracking\Domain\Pageview\Factory;
|
||||
use DanielSiepmann\Tracking\Domain\Repository\Pageview;
|
||||
use Doctrine\DBAL\Statement;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use TYPO3\TestingFramework\Core\Unit\UnitTestCase as TestCase;
|
||||
use Prophecy\PhpUnit\ProphecyTrait;
|
||||
use TYPO3\CMS\Core\Database\Connection;
|
||||
use TYPO3\CMS\Core\Database\Query\QueryBuilder;
|
||||
|
|
|
@ -23,7 +23,7 @@ namespace DanielSiepmann\Tracking\Tests\Unit\Domain\Repository;
|
|||
|
||||
use DanielSiepmann\Tracking\Domain\Model\Recordview as Model;
|
||||
use DanielSiepmann\Tracking\Domain\Repository\Recordview;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use TYPO3\TestingFramework\Core\Unit\UnitTestCase as TestCase;
|
||||
use Prophecy\PhpUnit\ProphecyTrait;
|
||||
use TYPO3\CMS\Core\Database\Connection;
|
||||
use TYPO3\CMS\Core\Site\Entity\SiteLanguage;
|
||||
|
|
|
@ -24,7 +24,7 @@ namespace DanielSiepmann\Tracking\Tests\Unit\Middleware;
|
|||
use DanielSiepmann\Tracking\Domain\Model\Pageview as Model;
|
||||
use DanielSiepmann\Tracking\Domain\Repository\Pageview as Repository;
|
||||
use DanielSiepmann\Tracking\Middleware\Pageview;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use TYPO3\TestingFramework\Core\Unit\UnitTestCase as TestCase;
|
||||
use Prophecy\Argument;
|
||||
use Prophecy\PhpUnit\ProphecyTrait;
|
||||
use Psr\Http\Message\ResponseInterface;
|
||||
|
|
|
@ -24,7 +24,7 @@ namespace DanielSiepmann\Tracking\Tests\Unit\Middleware;
|
|||
use DanielSiepmann\Tracking\Domain\Model\Recordview as Model;
|
||||
use DanielSiepmann\Tracking\Domain\Repository\Recordview as Repository;
|
||||
use DanielSiepmann\Tracking\Middleware\Recordview;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use TYPO3\TestingFramework\Core\Unit\UnitTestCase as TestCase;
|
||||
use Prophecy\Argument;
|
||||
use Prophecy\PhpUnit\ProphecyTrait;
|
||||
use Psr\Http\Message\ResponseInterface;
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
"jangregor/phpstan-prophecy": "^0.8.1",
|
||||
"maglnet/composer-require-checker": "^3.2",
|
||||
"phpspec/prophecy-phpunit": "^2.0",
|
||||
"typo3/testing-framework": "^6.3",
|
||||
"typo3/testing-framework": "^6.8.2",
|
||||
"saschaegerer/phpstan-typo3": "^0.13.1"
|
||||
},
|
||||
"minimum-stability": "dev",
|
||||
|
|
Loading…
Reference in a new issue