Skip to content

Commit

Permalink
Add coverage annotation to all tests
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Fedurtsya <[email protected]>
  • Loading branch information
Sieg committed Dec 28, 2023
1 parent 56dde5f commit e52a093
Show file tree
Hide file tree
Showing 16 changed files with 48 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
use OxidEsales\MediaLibrary\Tests\Integration\IntegrationTestCase;
use OxidEsales\MediaLibrary\Image\Service\ThumbnailGeneratorIntervention;

/**
* @covers \OxidEsales\MediaLibrary\Image\Service\ThumbnailGeneratorIntervention
*/
class ThumbnailGeneratorInterventionTest extends IntegrationTestCase
{
private $vfsRootUrl;
Expand Down
3 changes: 3 additions & 0 deletions tests/Integration/Language/Controller/MediaLangJsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
use OxidEsales\MediaLibrary\Language\Core\LanguageInterface;
use OxidEsales\MediaLibrary\Transput\ResponseInterface;

/**
* @covers \OxidEsales\MediaLibrary\Language\Controller\MediaLangJs
*/
class MediaLangJsTest extends \PHPUnit\Framework\TestCase
{
public function testInit(): void
Expand Down
3 changes: 3 additions & 0 deletions tests/Integration/Language/Core/LanguageProxyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
use OxidEsales\MediaLibrary\Language\Core\LanguageProxy;
use PHPUnit\Framework\TestCase;

/**
* @covers \OxidEsales\MediaLibrary\Language\Core\LanguageExtension
*/
class LanguageProxyTest extends TestCase
{
public function testGetLanguageStrings(): void
Expand Down
3 changes: 3 additions & 0 deletions tests/Integration/Media/Repository/MediaRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
use OxidEsales\MediaLibrary\Media\Repository\MediaFactoryInterface;
use OxidEsales\MediaLibrary\Media\Repository\MediaRepository;

/**
* @covers \OxidEsales\MediaLibrary\Media\Repository\MediaRepository
*/
class MediaRepositoryTest extends IntegrationTestCase
{
protected QueryBuilderFactoryInterface $queryBuilderFactory;
Expand Down
3 changes: 3 additions & 0 deletions tests/Integration/Service/MediaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
use OxidEsales\EshopCommunity\Internal\Container\ContainerFactory;
use OxidEsales\MediaLibrary\Image\Service\ThumbnailGeneratorInterface;

/**
* @covers \OxidEsales\MediaLibrary\Service\Media
*/
class MediaTest extends IntegrationTestCase
{
private const FIXTURE_FILE = 'file.jpg';
Expand Down
3 changes: 3 additions & 0 deletions tests/Integration/Transition/Core/RequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
use OxidEsales\MediaLibrary\Transput\Request;
use PHPUnit\Framework\TestCase;

/**
* @covers \OxidEsales\MediaLibrary\Transput\Request
*/
class RequestTest extends TestCase
{
/**
Expand Down
3 changes: 3 additions & 0 deletions tests/Integration/Transition/Core/ResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
use OxidEsales\MediaLibrary\Transput\Response;
use PHPUnit\Framework\TestCase;

/**
* @covers \OxidEsales\MediaLibrary\Transput\Response
*/
class ResponseTest extends TestCase
{
public function testRespondAsJson(): void
Expand Down
3 changes: 3 additions & 0 deletions tests/Unit/Breadcrumb/DataType/BreadcrumbTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
use OxidEsales\MediaLibrary\Breadcrumb\DataType\Breadcrumb;
use PHPUnit\Framework\TestCase;

/**
* @covers \OxidEsales\MediaLibrary\Breadcrumb\DataType\Breadcrumb
*/
class BreadcrumbTest extends TestCase
{
public function testGetters(): void
Expand Down
3 changes: 3 additions & 0 deletions tests/Unit/Breadcrumb/Service/BreadcrumbServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
use OxidEsales\MediaLibrary\Transput\RequestInterface;
use PHPUnit\Framework\TestCase;

/**
* @covers \OxidEsales\MediaLibrary\Breadcrumb\Service\BreadcrumbService
*/
class BreadcrumbServiceTest extends TestCase
{
public function testNoFolderId(): void
Expand Down
3 changes: 3 additions & 0 deletions tests/Unit/Image/DataTransfer/ImageSizeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
use OxidEsales\MediaLibrary\Image\DataTransfer\ImageSize;
use PHPUnit\Framework\TestCase;

/**
* @covers \OxidEsales\MediaLibrary\Image\DataTransfer\ImageSize
*/
class ImageSizeTest extends TestCase
{
public function testGetWidth(): void
Expand Down
3 changes: 3 additions & 0 deletions tests/Unit/Image/Service/ImageResourceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
use OxidEsales\MediaLibrary\Service\ModuleSettings;
use PHPUnit\Framework\TestCase;

/**
* @covers \OxidEsales\MediaLibrary\Image\Service\ImageResource
*/
class ImageResourceTest extends TestCase
{
private const FIXTURE_FILE = 'file.jpg';
Expand Down
3 changes: 3 additions & 0 deletions tests/Unit/Language/Core/LanguageProxyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
use OxidEsales\MediaLibrary\Language\Core\LanguageProxy;
use PHPUnit\Framework\TestCase;

/**
* @covers \OxidEsales\MediaLibrary\Language\Core\LanguageProxy
*/
class LanguageProxyTest extends TestCase
{
public function testSanitizeFilename(): void
Expand Down
3 changes: 3 additions & 0 deletions tests/Unit/Media/DataType/MediaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
use OxidEsales\MediaLibrary\Media\DataType\Media;
use PHPUnit\Framework\TestCase;

/**
* @covers \OxidEsales\MediaLibrary\Media\DataType\Media
*/
class MediaTest extends TestCase
{
public function testGetters(): void
Expand Down
3 changes: 3 additions & 0 deletions tests/Unit/Media/Repository/MediaFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
use OxidEsales\MediaLibrary\Media\Repository\MediaFactory;
use PHPUnit\Framework\TestCase;

/**
* @covers \OxidEsales\MediaLibrary\Media\Repository\MediaFactory
*/
class MediaFactoryTest extends TestCase
{
public function testFromDatabaseArray(): void
Expand Down
3 changes: 3 additions & 0 deletions tests/Unit/Service/MediaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
use OxidEsales\MediaLibrary\Service\NamingServiceInterface;
use PHPUnit\Framework\TestCase;

/**
* @covers \OxidEsales\MediaLibrary\Service\Media
*/
class MediaTest extends TestCase
{
private const FIXTURE_FILE = 'file.jpg';
Expand Down
3 changes: 3 additions & 0 deletions tests/Unit/Service/NamingServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
use OxidEsales\MediaLibrary\Service\NamingService;
use PHPUnit\Framework\TestCase;

/**
* @covers \OxidEsales\MediaLibrary\Service\NamingService
*/
class NamingServiceTest extends TestCase
{
/** @dataProvider sanitizeFilenameDataProvider */
Expand Down

0 comments on commit e52a093

Please sign in to comment.