Skip to content

Commit e5d4893

Browse files
committed
Fix test relying on gateway implementaions
1 parent 5c7211e commit e5d4893

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tests/Omnipay/Common/AbstractGatewayTest.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ public function setUp()
1414

1515
public function testGetShortName()
1616
{
17-
// test a couple of known getShortName() examples
18-
$gateway = GatewayFactory::create('PayPal_Express');
19-
$this->assertSame('PayPal_Express', $gateway->getShortName());
20-
21-
$gateway = GatewayFactory::create('Stripe');
22-
$this->assertSame('Stripe', $gateway->getShortName());
17+
$this->assertSame('\\'.get_class($this->gateway), $this->gateway->getShortName());
2318
}
2419
}

0 commit comments

Comments
 (0)