Skip to content

Commit

Permalink
fixes for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
opheugene committed Jul 18, 2024
1 parent ccbff3a commit 7d65407
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
28 changes: 14 additions & 14 deletions src/Model/Filter/Store/ProductFilterType.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,81 +37,81 @@ class ProductFilterType
public $name;

/**
* @var string
* @var int
*
* @Form\Type("int")
* @Form\SerializedName("minPrice")
*/
public $minPrice;

/**
* @var string
* @var int
*
* @Form\Type("int")
* @Form\SerializedName("maxPrice")
*/
public $maxPrice;

/**
* @var string
* @var int
*
* @Form\Type("int")
* @Form\SerializedName("minPurchasePrice")
*/
public $minPurchasePrice;

/**
* @var string
* @var int
*
* @Form\Type("int")
* @Form\SerializedName("maxPurchasePrice")
*/
public $maxPurchasePrice;

/**
* @var string
* @var int
*
* @Form\Type("int")
* @Form\SerializedName("minQuantity")
*/
public $minQuantity;

/**
* @var string
* @var int
*
* @Form\Type("int")
* @Form\SerializedName("maxQuantity")
*/
public $maxQuantity;

/**
* @var string
* @var int
*
* @Form\Type("string")
* @Form\Type("int")
* @Form\SerializedName("popular")
*/
public $popular;

/**
* @var string
* @var int
*
* @Form\Type("string")
* @Form\Type("int")
* @Form\SerializedName("stock")
*/
public $stock;

/**
* @var string
* @var int
*
* @Form\Type("string")
* @Form\Type("int")
* @Form\SerializedName("novelty")
*/
public $novelty;

/**
* @var string
* @var int
*
* @Form\Type("string")
* @Form\Type("int")
* @Form\SerializedName("recommended")
*/
public $recommended;
Expand Down
4 changes: 2 additions & 2 deletions tests/src/ResourceGroup/StoreTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ public function testProducts(): void
$request->filter = new ProductFilterType();
$request->filter->active = NumericBoolean::TRUE;
$request->filter->priceType = 'base';
$request->filter->maxPrice = '10000';
$request->filter->maxPrice = 10000;
$request->filter->name = 'Test Product';

$mock = static::createApiMockBuilder('store/products');
Expand Down Expand Up @@ -548,7 +548,7 @@ public function testProductsSinceUpdated(): void
$request->filter = new ProductFilterType();
$request->filter->active = NumericBoolean::TRUE;
$request->filter->priceType = 'base';
$request->filter->maxPrice = '10000';
$request->filter->maxPrice = 10000;
$request->filter->name = 'Test Product';
$request->filter->sinceId = 828272;
$request->filter->sinceUpdatedAt = DateTimeTransformer::create('2020-01-01 00:00:00');
Expand Down

0 comments on commit 7d65407

Please sign in to comment.