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
5b7eed750f
commit
ca9fd29884
2 changed files with 3 additions and 7 deletions
|
@ -3,7 +3,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace WooCommerce\PayPalCommerce\Onboarding\Helper;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use WooCommerce\PayPalCommerce\TestCase;
|
||||
use WooCommerce\PayPalCommerce\ApiClient\Helper\Cache;
|
||||
use RuntimeException;
|
||||
use function Brain\Monkey\Functions\when;
|
||||
|
@ -15,7 +15,7 @@ class OnboardingUrlTest extends TestCase
|
|||
private $user_id = 123;
|
||||
private $onboardingUrl;
|
||||
|
||||
protected function setUp(): void
|
||||
public function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
|
@ -118,7 +118,6 @@ class OnboardingUrlTest extends TestCase
|
|||
public function test_delete()
|
||||
{
|
||||
// Expectations
|
||||
$this->cache->shouldReceive('has')->once();
|
||||
$this->cache->shouldReceive('delete')->once();
|
||||
|
||||
$this->onboardingUrl->delete();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue