Bugzilla – Attachment 25287 Details for
Bug 10363
Move authorised value related code into its own package
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10363: UT: execute tests into a transaction
Bug-10363-UT-execute-tests-into-a-transaction.patch (text/plain), 1.32 KB, created by
Marcel de Rooy
on 2014-02-14 17:49:52 UTC
(
hide
)
Description:
Bug 10363: UT: execute tests into a transaction
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2014-02-14 17:49:52 UTC
Size:
1.32 KB
patch
obsolete
>From 76c556bcf01ed622306f6bbc576f539ca383121e Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Fri, 30 Aug 2013 09:47:24 +0200 >Subject: [PATCH] Bug 10363: UT: execute tests into a transaction >Content-Type: text/plain; charset=utf-8 > >Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >--- > t/db_dependent/AuthorisedValues.t | 16 +++++++++------- > 1 files changed, 9 insertions(+), 7 deletions(-) > >diff --git a/t/db_dependent/AuthorisedValues.t b/t/db_dependent/AuthorisedValues.t >index 2b5cc96..6c6b15b 100644 >--- a/t/db_dependent/AuthorisedValues.t >+++ b/t/db_dependent/AuthorisedValues.t >@@ -1,12 +1,17 @@ > #!/usr/bin/perl > > use Modern::Perl; >-use Test::More tests => 31; >+use Test::More tests => 32; > >+use C4::Context; > use Koha::AuthorisedValue; > use Koha::AuthorisedValues; > >-use Data::Dumper; # FIXME REMOVEME >+my $dbh = C4::Context->dbh; >+$dbh->{AutoCommit} = 0; >+$dbh->{RaiseError} = 1; >+ >+$dbh->do("DELETE FROM authorised_values"); > > # Tests for Koha::AuthorisedValue > >@@ -146,9 +151,6 @@ $selected = shift @$selected; > is( $selected->{selected}, 1, 'av is selected' ); > is( $selected->{authorised_value}, 'value 5', 'av selected is "value 5"'); > >+is( $av1->delete, 1, "Delete 1 AV" ); > >-$av1->delete; >-$av2->delete; >-$av3->delete; >-$av4->delete; >-$av5->delete; >+$dbh->rollback; >-- >1.7.7.6
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 10363
:
18430
|
18431
|
18432
|
18751
|
18752
|
18753
|
20729
|
21833
|
21834
|
21835
|
21836
|
25284
|
25285
|
25286
|
25287
|
30583
|
30584
|
30585
|
30710
|
30711
|
30712
|
31565
|
32632
|
32633
|
32634
|
33416
|
33417
|
33422
|
33423
|
33860
|
33861
|
33862
|
33889
|
33949
|
35838
|
35839
|
35840
|
35841
|
41290
|
41291
|
41292
|
41293
|
41294
|
41302
|
41343
|
41344
|
41345
|
43112
|
43113
|
43114
|
43550
|
43551
|
43552
|
43553
|
43554
|
43555
|
43556
|
43557
|
43558
|
43559
|
43696
|
43827