Bugzilla – Attachment 21836 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]
[SIGNED-OFF] Bug 10363: UT: execute tests into a transaction
SIGNED-OFF-Bug-10363-UT-execute-tests-into-a-trans.patch (text/plain), 1.29 KB, created by
Bernardo Gonzalez Kriegel
on 2013-10-06 17:17:40 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 10363: UT: execute tests into a transaction
Filename:
MIME Type:
Creator:
Bernardo Gonzalez Kriegel
Created:
2013-10-06 17:17:40 UTC
Size:
1.29 KB
patch
obsolete
>From e6bb7a38ef67c3494de408d4e6add087ae0006ed 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] [SIGNED-OFF] Bug 10363: UT: execute tests into a transaction > >Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >--- > t/db_dependent/AuthorisedValues.t | 16 +++++++++------- > 1 file 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.9.5
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