Skip to content

Commit

Permalink
Fix naming of sofort client implementation
Browse files Browse the repository at this point in the history
This sneaked in during an IDE refactor
  • Loading branch information
Abban committed Jul 7, 2021
1 parent acb18a5 commit 70b8891
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Facade in front of Sofortueberweisung, an API to generate URLs of Sofort's checkout process
*/
class SofortLibSofortClient implements SofortClient {
class SofortLibClient implements SofortClient {

private Sofortueberweisung $api;

Expand Down
8 changes: 4 additions & 4 deletions tests/Unit/DataAccess/Sofort/Transfer/SofortLibClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
use Sofort\SofortLib\Sofortueberweisung;
use WMDE\Euro\Euro;
use WMDE\Fundraising\PaymentContext\DataAccess\Sofort\Transfer\Request;
use WMDE\Fundraising\PaymentContext\DataAccess\Sofort\Transfer\SofortLibSofortClient;
use WMDE\Fundraising\PaymentContext\DataAccess\Sofort\Transfer\SofortLibClient;

/**
* @covers \WMDE\Fundraising\PaymentContext\DataAccess\Sofort\Transfer\SofortLibSofortClient
* @covers \WMDE\Fundraising\PaymentContext\DataAccess\Sofort\Transfer\SofortLibClient
*/
class SofortLibClientTest extends TestCase {

public function testGet(): void {
$client = new SofortLibSofortClient( '47:11:00' );
$client = new SofortLibClient( '47:11:00' );

$amount = Euro::newFromCents( 500 );
$amountConvertedToFloat = $amount->getEuroFloat();
Expand Down Expand Up @@ -73,7 +73,7 @@ public function testGet(): void {
}

public function testWhenApiReturnsErrorAnExceptionWithApiErrorMessageIsThrown(): void {
$client = new SofortLibSofortClient( '47:11:00' );
$client = new SofortLibClient( '47:11:00' );

$api = $this->createMock( Sofortueberweisung::class );

Expand Down

0 comments on commit 70b8891

Please sign in to comment.