Skip to content

Commit

Permalink
SP-1104: Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
p-maguire committed Nov 25, 2024
1 parent 5de42bb commit a7dce73
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 20 deletions.
8 changes: 0 additions & 8 deletions Test/Integration/Block/IndexTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,6 @@ public function testGetBitpayEnv(): void
$this->assertEquals('test', $this->index->getBitpayEnv());
}

public function testGetModalParam(): void
{
$requst = $this->context->getRequest();
$requst->setParams(['m' => '1']);

$this->assertEquals(1, $this->index->getModalParam());
}

public function testOrderId(): void
{
$requst = $this->context->getRequest();
Expand Down
10 changes: 0 additions & 10 deletions Test/Unit/Block/IndexTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,6 @@ public function testGetBitpayEnv(): void
$this->assertEquals(self::ENV, $this->index->getBitpayEnv());
}

public function testGetModalParam(): void
{
$this->request->expects($this->once())
->method('getParam')
->with('m')
->willReturn(1);

$this->assertEquals(1, $this->index->getModalParam());
}

public function testGetOrderId(): void
{
$this->request->expects($this->once())->method('getParam')
Expand Down
3 changes: 1 addition & 2 deletions Test/Unit/Model/BPRedirectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,10 @@ public function setUp(): void
}

/**
* @param $ux
* @return void
* @throws \Exception
*/
public function testExecute($ux): void
public function testExecute(): void
{
$incrementId = '0000012121';
$bitpayToken = 'A32nRffe34dF2312vmm';
Expand Down

0 comments on commit a7dce73

Please sign in to comment.