fixes for tests
This commit is contained in:
parent
ccbff3aba3
commit
7d65407c7c
@ -37,7 +37,7 @@ class ProductFilterType
|
||||
public $name;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
* @var int
|
||||
*
|
||||
* @Form\Type("int")
|
||||
* @Form\SerializedName("minPrice")
|
||||
@ -45,7 +45,7 @@ class ProductFilterType
|
||||
public $minPrice;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
* @var int
|
||||
*
|
||||
* @Form\Type("int")
|
||||
* @Form\SerializedName("maxPrice")
|
||||
@ -53,7 +53,7 @@ class ProductFilterType
|
||||
public $maxPrice;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
* @var int
|
||||
*
|
||||
* @Form\Type("int")
|
||||
* @Form\SerializedName("minPurchasePrice")
|
||||
@ -61,7 +61,7 @@ class ProductFilterType
|
||||
public $minPurchasePrice;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
* @var int
|
||||
*
|
||||
* @Form\Type("int")
|
||||
* @Form\SerializedName("maxPurchasePrice")
|
||||
@ -69,7 +69,7 @@ class ProductFilterType
|
||||
public $maxPurchasePrice;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
* @var int
|
||||
*
|
||||
* @Form\Type("int")
|
||||
* @Form\SerializedName("minQuantity")
|
||||
@ -77,7 +77,7 @@ class ProductFilterType
|
||||
public $minQuantity;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
* @var int
|
||||
*
|
||||
* @Form\Type("int")
|
||||
* @Form\SerializedName("maxQuantity")
|
||||
@ -85,33 +85,33 @@ class ProductFilterType
|
||||
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;
|
||||
|
@ -446,7 +446,7 @@ EOF;
|
||||
$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');
|
||||
@ -548,7 +548,7 @@ EOF;
|
||||
$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');
|
||||
|
Loading…
Reference in New Issue
Block a user