Fix unit tests

This commit is contained in:
dinamiko 2021-10-15 16:28:18 +02:00
parent 3295488b29
commit b5748b2911
2 changed files with 4 additions and 15 deletions

View file

@ -876,6 +876,7 @@ class OrderEndpointTest extends TestCase
$purchaseUnit $purchaseUnit
->expects('to_array') ->expects('to_array')
->andReturn(['singlePurchaseUnit']); ->andReturn(['singlePurchaseUnit']);
$purchaseUnit->expects('shipping')->andReturn(true);
expect('wp_remote_get') expect('wp_remote_get')
->andReturnUsing( ->andReturnUsing(
@ -978,6 +979,7 @@ class OrderEndpointTest extends TestCase
$purchaseUnit $purchaseUnit
->expects('to_array') ->expects('to_array')
->andReturn(['singlePurchaseUnit']); ->andReturn(['singlePurchaseUnit']);
$purchaseUnit->expects('shipping')->andReturn(true);
expect('wp_remote_get') expect('wp_remote_get')
->andReturnUsing( ->andReturnUsing(
@ -1051,6 +1053,7 @@ class OrderEndpointTest extends TestCase
$purchaseUnit $purchaseUnit
->expects('to_array') ->expects('to_array')
->andReturn(['singlePurchaseUnit']); ->andReturn(['singlePurchaseUnit']);
$purchaseUnit->expects('shipping')->andReturn(true);
expect('wp_remote_get') expect('wp_remote_get')
->andReturnUsing( ->andReturnUsing(
@ -1134,6 +1137,7 @@ class OrderEndpointTest extends TestCase
$purchaseUnit $purchaseUnit
->expects('to_array') ->expects('to_array')
->andReturn(['singlePurchaseUnit']); ->andReturn(['singlePurchaseUnit']);
$purchaseUnit->expects('shipping')->andReturn(true);
expect('wp_remote_get') expect('wp_remote_get')
->andReturnUsing( ->andReturnUsing(

View file

@ -1,15 +0,0 @@
<?php
declare(strict_types=1);
namespace WooCommerce\PayPalCommerce\WcGateway\Repository;
use Mockery\Adapter\Phpunit\MockeryTestCase;
class CartRepositoryTest extends MockeryTestCase
{
public function testAll()
{
self::markTestSkipped("Todo");
}
}