Bugzilla – Attachment 74907 Details for
Bug 20444
Remove C4::Members::Attributes::GetAttributes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20444: Update test
Bug-20444-Update-test.patch (text/plain), 2.60 KB, created by
Marcel de Rooy
on 2018-04-27 08:39:42 UTC
(
hide
)
Description:
Bug 20444: Update test
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2018-04-27 08:39:42 UTC
Size:
2.60 KB
patch
obsolete
>From fa40ee002ad8b3109d2edf9091e2b71e80788683 Mon Sep 17 00:00:00 2001 >From: Josef Moravec <josef.moravec@gmail.com> >Date: Mon, 19 Mar 2018 09:33:07 +0000 >Subject: [PATCH] Bug 20444: Update test >MIME-Version: 1.0 >Content-Type: text/plain; charset=utf-8 >Content-Transfer-Encoding: 8bit >Content-Type: text/plain; charset=utf-8 > >0) Apply this patch >1) prove t/db_dependent/Members/Attributes.t >should return green > >Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > t/db_dependent/Members/Attributes.t | 14 +------------- > 1 file changed, 1 insertion(+), 13 deletions(-) > >diff --git a/t/db_dependent/Members/Attributes.t b/t/db_dependent/Members/Attributes.t >index 918c9bf..cd409ed 100644 >--- a/t/db_dependent/Members/Attributes.t >+++ b/t/db_dependent/Members/Attributes.t >@@ -25,7 +25,7 @@ use C4::Members::AttributeTypes; > use Koha::Database; > use t::lib::TestBuilder; > >-use Test::More tests => 55; >+use Test::More tests => 48; > > use_ok('C4::Members::Attributes'); > >@@ -58,24 +58,12 @@ my $borrowernumber = $patron->{borrowernumber}; > > my $attribute_type1 = C4::Members::AttributeTypes->new('my code1', 'my description1'); > $attribute_type1->unique_id(1); >-my $attribute_types = C4::Members::Attributes::GetAttributes(); >-is( @$attribute_types, 0, 'GetAttributes returns the correct number of attribute types' ); > $attribute_type1->store(); >-$attribute_types = C4::Members::Attributes::GetAttributes(); >-is( @$attribute_types, 1, 'GetAttributes returns the correct number of attribute types' ); >-is( $attribute_types->[0], $attribute_type1->code(), 'GetAttributes returns the correct value for code' ); >-$attribute_types = C4::Members::Attributes::GetAttributes(1); >-is( @$attribute_types, 0, 'GetAttributes returns the correct number of attribute types with the filter opac_only' ); > > my $attribute_type2 = C4::Members::AttributeTypes->new('my code2', 'my description2'); > $attribute_type2->opac_display(1); > $attribute_type2->staff_searchable(1); > $attribute_type2->store(); >-$attribute_types = C4::Members::Attributes::GetAttributes(); >-is( @$attribute_types, 2, 'GetAttributes returns the correct number of attribute types' ); >-is( $attribute_types->[1], $attribute_type2->code(), 'GetAttributes returns the correct value for code' ); >-$attribute_types = C4::Members::Attributes::GetAttributes(1); >-is( @$attribute_types, 1, 'GetAttributes returns the correct number of attribute types with the filter opac_only' ); > > my $new_library = $builder->build( { source => 'Branch' } ); > my $attribute_type_limited = C4::Members::AttributeTypes->new('my code3', 'my description3'); >-- >2.1.4
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 20444
:
73083
|
73084
|
73085
|
74788
|
74789
|
74790
|
74793
|
74794
|
74795
|
74906
| 74907 |
74908