Skip to content

Commit

Permalink
Use better examples for alternative schemes in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sprain committed Oct 1, 2023
1 parent bd9f093 commit 0788c56
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions tests/QrBillTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ public function testAlternativeSchemesCanBeSetAtOnce()
]);

$qrBill->setAlternativeSchemes([
AlternativeScheme::create('foo'),
AlternativeScheme::create('foo')
AlternativeScheme::create('CC/XRPL/10/bUuK6fwHtfZ3HGAgKvEV7Y5TzHEu8ChUj9'),
AlternativeScheme::create('CC/XRPL/10/bUuK6fwHtfZ3HGAgKvEV7Y5TzHEu8ChUj9')
]);

$this->assertSame(
Expand Down Expand Up @@ -214,7 +214,7 @@ public function testAlternativeSchemesMustBeValid()
'paymentReferenceQr',
]);

$qrBill->addAlternativeScheme(AlternativeScheme::create('foo'));
$qrBill->addAlternativeScheme(AlternativeScheme::create('CC/XRPL/10/bUuK6fwHtfZ3HGAgKvEV7Y5TzHEu8ChUj9'));
$qrBill->addAlternativeScheme(AlternativeScheme::create(''));

$this->assertFalse($qrBill->isValid());
Expand All @@ -230,9 +230,9 @@ public function testMaximumTwoAlternativeSchemesAreAllowed()
'paymentReferenceQr'
]);

$qrBill->addAlternativeScheme(AlternativeScheme::create('foo'));
$qrBill->addAlternativeScheme(AlternativeScheme::create('foo'));
$qrBill->addAlternativeScheme(AlternativeScheme::create('foo'));
$qrBill->addAlternativeScheme(AlternativeScheme::create('CC/XRPL/10/bUuK6fwHtfZ3HGAgKvEV7Y5TzHEu8ChUj9'));
$qrBill->addAlternativeScheme(AlternativeScheme::create('CC/XRPL/10/bUuK6fwHtfZ3HGAgKvEV7Y5TzHEu8ChUj9'));
$qrBill->addAlternativeScheme(AlternativeScheme::create('CC/XRPL/10/bUuK6fwHtfZ3HGAgKvEV7Y5TzHEu8ChUj9'));

$this->assertFalse($qrBill->isValid());
}
Expand Down
8 changes: 4 additions & 4 deletions tests/TestQrBillCreatorTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ protected function getQrBillWithAdditonalSchemes()
'paymentReferenceQr',
]);

$qrBill->addAlternativeScheme(AlternativeScheme::create('foo'));
$qrBill->addAlternativeScheme(AlternativeScheme::create('foo'));
$qrBill->addAlternativeScheme(AlternativeScheme::create('CC/XRPL/10/bUuK6fwHtfZ3HGAgKvEV7Y5TzHEu8ChUj9'));
$qrBill->addAlternativeScheme(AlternativeScheme::create('CC/XRPL/10/bUuK6fwHtfZ3HGAgKvEV7Y5TzHEu8ChUj9'));

return $qrBill;
}
Expand All @@ -162,8 +162,8 @@ protected function getQrBillFullSet()
'additionalInformation'
]);

$qrBill->addAlternativeScheme(AlternativeScheme::create('foo'));
$qrBill->addAlternativeScheme(AlternativeScheme::create('foo'));
$qrBill->addAlternativeScheme(AlternativeScheme::create('CC/XRPL/10/bUuK6fwHtfZ3HGAgKvEV7Y5TzHEu8ChUj9'));
$qrBill->addAlternativeScheme(AlternativeScheme::create('CC/XRPL/10/bUuK6fwHtfZ3HGAgKvEV7Y5TzHEu8ChUj9'));

return $qrBill;
}
Expand Down

0 comments on commit 0788c56

Please sign in to comment.