|
@@ 92-102 (lines=11) @@
|
| 89 |
|
/** |
| 90 |
|
* @test |
| 91 |
|
*/ |
| 92 |
|
public function AliasIsCreatedByOgone() |
| 93 |
|
{ |
| 94 |
|
$passphraseOut = new Passphrase(PASSPHRASE_SHA_OUT); |
| 95 |
|
$shaOutComposer = new AllParametersShaComposer($passphraseOut); |
| 96 |
|
$shaOutComposer->addParameterFilter(new ShaOutParameterFilter()); |
| 97 |
|
|
| 98 |
|
$createAliasResponse = $this->provideAliasResponse(false); |
| 99 |
|
|
| 100 |
|
$this->assertTrue($createAliasResponse->isValid($shaOutComposer)); |
| 101 |
|
$this->assertTrue($createAliasResponse->isSuccessful()); |
| 102 |
|
} |
| 103 |
|
|
| 104 |
|
/** |
| 105 |
|
* @test |
|
@@ 107-117 (lines=11) @@
|
| 104 |
|
/** |
| 105 |
|
* @test |
| 106 |
|
*/ |
| 107 |
|
public function CreateAliasInvalid() |
| 108 |
|
{ |
| 109 |
|
$passphraseOut = new Passphrase(PASSPHRASE_SHA_OUT); |
| 110 |
|
$shaOutComposer = new AllParametersShaComposer($passphraseOut); |
| 111 |
|
$shaOutComposer->addParameterFilter(new ShaOutParameterFilter()); |
| 112 |
|
|
| 113 |
|
$createAliasResponse = $this->provideAliasResponse(true, true); |
| 114 |
|
|
| 115 |
|
$this->assertTrue($createAliasResponse->isValid($shaOutComposer)); |
| 116 |
|
$this->assertFalse($createAliasResponse->isSuccessful()); |
| 117 |
|
} |
| 118 |
|
|
| 119 |
|
|
| 120 |
|
public function provideAliasResponse($createAlias = true, $noValidCardnumber = false) |