Skip to content

Commit

Permalink
OXDEV-7325: Correct test names and add type hints; Remove unnecessary…
Browse files Browse the repository at this point in the history
… usages;
  • Loading branch information
MarcelOxid committed Dec 6, 2023
1 parent c5c0e3d commit d6caf99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class ThemeSettingRepositoryGettersTest extends AbstractThemeSettingRepositoryTe
* @dataProvider possibleGetCollectionValuesDataProvider
* @dataProvider possibleGetAssocCollectionValuesDataProvider
*/
public function testGetShopSetting($method, $type, $possibleValue, $expectedResult): void
public function testGetThemeSetting(string $method, string $type, mixed $possibleValue, mixed $expectedResult): void
{
$name = uniqid();
$sut = $this->getSut(methods: ['getSettingValue']);
Expand All @@ -45,10 +45,10 @@ public function testGetShopSetting($method, $type, $possibleValue, $expectedResu
/**
* @dataProvider wrongSettingsValueDataProvider
*/
public function testGetShopSettingWrongData(
public function testGetThemeSettingWrongData(
string $method,
string $type,
$value,
mixed $value,
string $expectedException
): void {
$name = uniqid();
Expand Down
5 changes: 0 additions & 5 deletions tests/Unit/UnitTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,10 @@
namespace OxidEsales\GraphQL\ConfigurationAccess\Tests\Unit;

use OxidEsales\EshopCommunity\Internal\Transition\Utility\BasicContextInterface;
use OxidEsales\GraphQL\ConfigurationAccess\Setting\DataType\BooleanSetting;
use OxidEsales\GraphQL\ConfigurationAccess\Setting\DataType\FloatSetting;
use OxidEsales\GraphQL\ConfigurationAccess\Setting\DataType\IntegerSetting;
use OxidEsales\GraphQL\ConfigurationAccess\Setting\DataType\SettingType;
use OxidEsales\GraphQL\ConfigurationAccess\Setting\DataType\StringSetting;
use OxidEsales\GraphQL\ConfigurationAccess\Setting\Enum\FieldType;
use OxidEsales\GraphQL\ConfigurationAccess\Setting\Service\CollectionEncodingServiceInterface;
use PHPUnit\Framework\TestCase;
use TheCodingMachine\GraphQLite\Types\ID;

class UnitTestCase extends TestCase
{
Expand Down

0 comments on commit d6caf99

Please sign in to comment.