fix tests

This commit is contained in:
Narek Zakarian 2023-09-20 17:43:29 +04:00
parent 961a0fb3b9
commit 9f8f680507
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7

View file

@ -59,6 +59,9 @@ class ItemTest extends TestCase
$tax
->expects('to_array')
->andReturn([2]);
$image_url = 'https://example.com/wp-content/uploads/2023/06/beanie-2.jpg';
$testee = new Item(
'name',
$unitAmount,
@ -68,7 +71,7 @@ class ItemTest extends TestCase
'sku',
'PHYSICAL_GOODS',
'url',
'image_url'
$image_url
);
$expected = [
@ -79,7 +82,7 @@ class ItemTest extends TestCase
'sku' => 'sku',
'category' => 'PHYSICAL_GOODS',
'url' => 'url',
'image_url' => 'image_url',
'image_url' => $image_url,
'tax' => [2],
];