We will be off from 27/1 (Monday) to 31/1 (Friday) (GMT +7) for our Tet Holiday (Lunar New Year) in our country

Commit 16287438 authored by Tuan's avatar Tuan

Fix unit test function

parent c10b6e4a
......@@ -14,7 +14,7 @@ class ApiKeyEndingTest extends TestCase
*/
private $apiKeyEndingComment;
public function setUp()
public function setUp(): void
{
/** @var MockObject|Encryptor $encryptor */
$encryptor = $this->createMock(Encryptor::class);
......
......@@ -37,7 +37,7 @@ class DataTest extends \PHPUnit\Framework\TestCase
->getMock();
}
public function setUp()
public function setUp(): void
{
$context = $this->getSimpleMock(\Magento\Framework\App\Helper\Context::class);
$encryptor = $this->getSimpleMock(\Magento\Framework\Encryption\EncryptorInterface::class);
......
......@@ -37,7 +37,7 @@ class IpAddressTest extends \PHPUnit\Framework\TestCase
->getMock();
}
protected function setUp()
protected function setUp(): void
{
$cache = $this->getSimpleMock(\Magento\Framework\App\CacheInterface::class);
$cache->method('load')->willReturn(
......
......@@ -43,7 +43,7 @@ class AdyenInitiateTerminalApiTest extends \PHPUnit\Framework\TestCase
->getMock();
}
public function setUp()
public function setUp(): void
{
$adyenHelper = $this->getSimpleMock(\Adyen\Payment\Helper\Data::class);
$adyenLogger = $this->getSimpleMock(\Adyen\Payment\Logger\AdyenLogger::class);
......
......@@ -33,7 +33,7 @@ class AdyenOriginKeyTest extends TestCase
/** @var AdyenHelper|MockObject */
private $helper;
protected function setUp()
protected function setUp(): void
{
$this->helper = $this->getMockBuilder(AdyenHelper::class)
->disableOriginalConstructor()
......
......@@ -66,7 +66,7 @@ class NotificationColumnTest extends TestCase
*/
private $notificationColumn;
public function setUp()
public function setUp(): void
{
$this->orderMock = $this->getMockBuilder(Order::class)
->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