Skip to content

Commit

Permalink
Update GatewayTestCase.php
Browse files Browse the repository at this point in the history
  • Loading branch information
barryvdh authored Jun 2, 2021
1 parent d75d2de commit 454001c
Showing 1 changed file with 20 additions and 30 deletions.
50 changes: 20 additions & 30 deletions src/GatewayTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,6 @@ public function testSupportsUpdateCard()
}
}

/**
* @doesNotPerformAssertions
*/
public function testAuthorizeParameters()
{
if ($this->gateway->supportsAuthorize()) {
Expand All @@ -205,12 +202,11 @@ public function testAuthorizeParameters()
$request = $this->gateway->authorize();
$this->assertSame($value, $request->$getter());
}
} else {
$this->expectNotToPerformAssertions();
}
}

/**
* @doesNotPerformAssertions
*/
public function testCompleteAuthorizeParameters()
{
if ($this->gateway->supportsCompleteAuthorize()) {
Expand All @@ -225,12 +221,11 @@ public function testCompleteAuthorizeParameters()
$request = $this->gateway->completeAuthorize();
$this->assertSame($value, $request->$getter());
}
} else {
$this->expectNotToPerformAssertions();
}
}

/**
* @doesNotPerformAssertions
*/
public function testCaptureParameters()
{
if ($this->gateway->supportsCapture()) {
Expand All @@ -245,12 +240,11 @@ public function testCaptureParameters()
$request = $this->gateway->capture();
$this->assertSame($value, $request->$getter());
}
} else {
$this->expectNotToPerformAssertions();
}
}

/**
* @doesNotPerformAssertions
*/
public function testPurchaseParameters()
{
if ($this->gateway->supportsPurchase()) {
Expand All @@ -265,12 +259,11 @@ public function testPurchaseParameters()
$request = $this->gateway->purchase();
$this->assertSame($value, $request->$getter());
}
} else {
$this->expectNotToPerformAssertions();
}
}

/**
* @doesNotPerformAssertions
*/
public function testCompletePurchaseParameters()
{
if ($this->gateway->supportsCompletePurchase()) {
Expand All @@ -285,12 +278,11 @@ public function testCompletePurchaseParameters()
$request = $this->gateway->completePurchase();
$this->assertSame($value, $request->$getter());
}
} else {
$this->expectNotToPerformAssertions();
}
}

/**
* @doesNotPerformAssertions
*/
public function testRefundParameters()
{
if ($this->gateway->supportsRefund()) {
Expand All @@ -305,12 +297,11 @@ public function testRefundParameters()
$request = $this->gateway->refund();
$this->assertSame($value, $request->$getter());
}
} else {
$this->expectNotToPerformAssertions();
}
}

/**
* @doesNotPerformAssertions
*/
public function testVoidParameters()
{
if ($this->gateway->supportsVoid()) {
Expand All @@ -325,12 +316,11 @@ public function testVoidParameters()
$request = $this->gateway->void();
$this->assertSame($value, $request->$getter());
}
} else {
$this->expectNotToPerformAssertions();
}
}

/**
* @doesNotPerformAssertions
*/
public function testCreateCardParameters()
{
if ($this->gateway->supportsCreateCard()) {
Expand All @@ -345,12 +335,11 @@ public function testCreateCardParameters()
$request = $this->gateway->createCard();
$this->assertSame($value, $request->$getter());
}
} else {
$this->expectNotToPerformAssertions();
}
}

/**
* @doesNotPerformAssertions
*/
public function testDeleteCardParameters()
{
if ($this->gateway->supportsDeleteCard()) {
Expand All @@ -365,12 +354,11 @@ public function testDeleteCardParameters()
$request = $this->gateway->deleteCard();
$this->assertSame($value, $request->$getter());
}
} else {
$this->expectNotToPerformAssertions();
}
}

/**
* @doesNotPerformAssertions
*/
public function testUpdateCardParameters()
{
if ($this->gateway->supportsUpdateCard()) {
Expand All @@ -385,6 +373,8 @@ public function testUpdateCardParameters()
$request = $this->gateway->updateCard();
$this->assertSame($value, $request->$getter());
}
} else {
$this->expectNotToPerformAssertions();
}
}
}

0 comments on commit 454001c

Please sign in to comment.