Skip to content

Commit

Permalink
MAGE-1078: separate classes to prevent phpcs to report an error (#1637)
Browse files Browse the repository at this point in the history
  • Loading branch information
damcou authored Oct 30, 2024
1 parent ec4c5d9 commit 4738dc2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
10 changes: 0 additions & 10 deletions Test/Unit/ConfigHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Algolia\AlgoliaSearch\Test\Unit;

use Algolia\AlgoliaSearch\Helper\ConfigHelper;
use Magento\Cookie\Helper\Cookie as CookieHelper;
use Magento\Customer\Api\GroupExcludedWebsiteRepositoryInterface;
use Magento\Customer\Model\ResourceModel\Group\Collection as GroupCollection;
Expand All @@ -18,15 +17,6 @@
use Magento\Store\Model\StoreManagerInterface;
use PHPUnit\Framework\TestCase;

class ConfigHelperTestable extends ConfigHelper
{
/** expose protected methods for unit testing */
public function serialize(array $value): string
{
return parent::serialize($value);
}
}

class ConfigHelperTest extends TestCase
{
protected ConfigHelperTestable $configHelper;
Expand Down
14 changes: 14 additions & 0 deletions Test/Unit/ConfigHelperTestable.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

namespace Algolia\AlgoliaSearch\Test\Unit;

use Algolia\AlgoliaSearch\Helper\ConfigHelper;

class ConfigHelperTestable extends ConfigHelper
{
/** expose protected methods for unit testing */
public function serialize(array $value): string
{
return parent::serialize($value);
}
}

0 comments on commit 4738dc2

Please sign in to comment.