Commit 1e06b2aa authored by Tuan's avatar Tuan

Fatal error: Declaration of::setUp() must be compatible with...

Fatal error: Declaration of::setUp() must be compatible with PHPUnit\Framework\TestCase::setUp(): void
parent 4831d5dc
...@@ -14,7 +14,7 @@ class ApiKeyEndingTest extends TestCase ...@@ -14,7 +14,7 @@ class ApiKeyEndingTest extends TestCase
*/ */
private $apiKeyEndingComment; private $apiKeyEndingComment;
public function setUp() public function setUp(): void
{ {
/** @var MockObject|Encryptor $encryptor */ /** @var MockObject|Encryptor $encryptor */
$encryptor = $this->createMock(Encryptor::class); $encryptor = $this->createMock(Encryptor::class);
......
...@@ -37,7 +37,7 @@ class DataTest extends \PHPUnit\Framework\TestCase ...@@ -37,7 +37,7 @@ class DataTest extends \PHPUnit\Framework\TestCase
->getMock(); ->getMock();
} }
public function setUp() public function setUp(): void
{ {
$context = $this->getSimpleMock(\Magento\Framework\App\Helper\Context::class); $context = $this->getSimpleMock(\Magento\Framework\App\Helper\Context::class);
$encryptor = $this->getSimpleMock(\Magento\Framework\Encryption\EncryptorInterface::class); $encryptor = $this->getSimpleMock(\Magento\Framework\Encryption\EncryptorInterface::class);
......
...@@ -37,7 +37,7 @@ class IpAddressTest extends \PHPUnit\Framework\TestCase ...@@ -37,7 +37,7 @@ class IpAddressTest extends \PHPUnit\Framework\TestCase
->getMock(); ->getMock();
} }
protected function setUp() protected function setUp(): void
{ {
$cache = $this->getSimpleMock(\Magento\Framework\App\CacheInterface::class); $cache = $this->getSimpleMock(\Magento\Framework\App\CacheInterface::class);
$cache->method('load')->willReturn( $cache->method('load')->willReturn(
......
...@@ -43,7 +43,7 @@ class AdyenInitiateTerminalApiTest extends \PHPUnit\Framework\TestCase ...@@ -43,7 +43,7 @@ class AdyenInitiateTerminalApiTest extends \PHPUnit\Framework\TestCase
->getMock(); ->getMock();
} }
public function setUp() public function setUp(): void
{ {
$adyenHelper = $this->getSimpleMock(\Adyen\Payment\Helper\Data::class); $adyenHelper = $this->getSimpleMock(\Adyen\Payment\Helper\Data::class);
$adyenLogger = $this->getSimpleMock(\Adyen\Payment\Logger\AdyenLogger::class); $adyenLogger = $this->getSimpleMock(\Adyen\Payment\Logger\AdyenLogger::class);
......
...@@ -33,7 +33,7 @@ class AdyenOriginKeyTest extends TestCase ...@@ -33,7 +33,7 @@ class AdyenOriginKeyTest extends TestCase
/** @var AdyenHelper|MockObject */ /** @var AdyenHelper|MockObject */
private $helper; private $helper;
protected function setUp() protected function setUp(): void
{ {
$this->helper = $this->getMockBuilder(AdyenHelper::class) $this->helper = $this->getMockBuilder(AdyenHelper::class)
->disableOriginalConstructor() ->disableOriginalConstructor()
......
...@@ -66,7 +66,7 @@ class NotificationColumnTest extends TestCase ...@@ -66,7 +66,7 @@ class NotificationColumnTest extends TestCase
*/ */
private $notificationColumn; private $notificationColumn;
public function setUp() public function setUp(): void
{ {
$this->orderMock = $this->getMockBuilder(Order::class) $this->orderMock = $this->getMockBuilder(Order::class)
->disableOriginalConstructor() ->disableOriginalConstructor()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment