Bug 30130: (QA follow-up) Fix tests
Result was copied and pasted, needed to update check Was passing objetc instead of standard field Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
5c3ab82e2f
commit
cd13c87d41
|
|
@ -45,12 +45,12 @@ subtest 'beggining_of_message tests' => sub {
|
|||
);
|
||||
my $dbic_edi_vendor = $schema->resultset('VendorEdiAccount')->find($edi_vendor->{id});
|
||||
|
||||
my $bgm = Koha::Edifact::Order::beginning_of_message($basketno, $dbic_edi_vendor, 1);
|
||||
my $bgm = Koha::Edifact::Order::beginning_of_message($basketno, $dbic_edi_vendor->standard, 1);
|
||||
is( $bgm, qq{BGM+220+$basketno+9'}, "When vendor is set to EDItEUR standard we use 220 in BGM segment");
|
||||
|
||||
$dbic_edi_vendor->update({ standard => 'BIC'});
|
||||
$bgm = Koha::Edifact::Order::beginning_of_message($basketno, $dbic_edi_vendor, 1);
|
||||
is( $bgm, qq{BGM+220+$basketno+9'}, "When vendor is set to BiC standard we use 22V in BGM segment");
|
||||
$bgm = Koha::Edifact::Order::beginning_of_message($basketno, $dbic_edi_vendor->standard, 1);
|
||||
is( $bgm, qq{BGM+22V+$basketno+9'}, "When vendor is set to BiC standard we use 22V in BGM segment");
|
||||
|
||||
$schema->storage->txn_rollback;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue