mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +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
|
||||
->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],
|
||||
];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue