mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 12:25:15 +08:00
fix tests
This commit is contained in:
parent
961a0fb3b9
commit
9f8f680507
1 changed files with 5 additions and 2 deletions
|
@ -59,6 +59,9 @@ class ItemTest extends TestCase
|
||||||
$tax
|
$tax
|
||||||
->expects('to_array')
|
->expects('to_array')
|
||||||
->andReturn([2]);
|
->andReturn([2]);
|
||||||
|
|
||||||
|
$image_url = 'https://example.com/wp-content/uploads/2023/06/beanie-2.jpg';
|
||||||
|
|
||||||
$testee = new Item(
|
$testee = new Item(
|
||||||
'name',
|
'name',
|
||||||
$unitAmount,
|
$unitAmount,
|
||||||
|
@ -68,7 +71,7 @@ class ItemTest extends TestCase
|
||||||
'sku',
|
'sku',
|
||||||
'PHYSICAL_GOODS',
|
'PHYSICAL_GOODS',
|
||||||
'url',
|
'url',
|
||||||
'image_url'
|
$image_url
|
||||||
);
|
);
|
||||||
|
|
||||||
$expected = [
|
$expected = [
|
||||||
|
@ -79,7 +82,7 @@ class ItemTest extends TestCase
|
||||||
'sku' => 'sku',
|
'sku' => 'sku',
|
||||||
'category' => 'PHYSICAL_GOODS',
|
'category' => 'PHYSICAL_GOODS',
|
||||||
'url' => 'url',
|
'url' => 'url',
|
||||||
'image_url' => 'image_url',
|
'image_url' => $image_url,
|
||||||
'tax' => [2],
|
'tax' => [2],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue