Skip to content

Commit 52c1fa2

Browse files
authored
Merge pull request #185 from unzerdev/CC-803/twint
[CC-803] Activate and fix twint type creation test.
2 parents 5fe93f2 + 090d619 commit 52c1fa2

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

test/integration/PaymentTypes/TwintTest.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,14 @@ class TwintTest extends BaseIntegrationTest
2020
{
2121
protected const testClass = Twint::class;
2222

23-
protected function setUp(): void
24-
{
25-
$this->markTestSkipped('Skipped by default as setup is missing for integration tests.');
26-
}
27-
2823
/**
2924
* Verify twint can be created.
3025
*
3126
* @test
3227
*/
3328
public function typeShouldBeCreatableAndFetchable(): BasePaymentType
3429
{
35-
$paymentType = $this->unzer->createPaymentType($this->createTypeInstance());
30+
$paymentType = $this->getUnzerObject()->createPaymentType($this->createTypeInstance());
3631
$this->assertInstanceOf(self::testClass, $paymentType);
3732
$this->assertNotNull($paymentType->getId());
3833

@@ -54,7 +49,7 @@ public function typeShouldBeCreatableAndFetchable(): BasePaymentType
5449
*/
5550
public function twintShouldBeAbleToCharge(BasePaymentType $paymentType): Charge
5651
{
57-
$charge = $this->unzer->charge(100.0, 'EUR', $paymentType, self::RETURN_URL);
52+
$charge = $this->unzer->charge(100.0, 'CHF', $paymentType, self::RETURN_URL);
5853
$this->assertNotNull($charge);
5954
$this->assertNotEmpty($charge->getId());
6055
$this->assertNotEmpty($charge->getRedirectUrl());

0 commit comments

Comments
 (0)