Koha-clms/t/db_dependent/Koha
Tomas Cohen Arazi 7b5c8cbf07 Bug 17792: Add opac_editable and opac_display methods
This patch adds two methods to the Koha::Patron::Attribute:

- opac_display
- opac_editable

Both method just check the corresponding Koha::Patron::Attribute::Type
and return the values for those attributes. This is useful to avoid
checking that manually on the controller scripts.

To test:
- Run:
  $ prove t/db_dependent/Koha/Patron/Attributes.t
=> SUCCESS: Tests pass!
- Sign off :-D

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2017-03-24 18:44:03 +00:00
..
Acquisition Bug 16053: Add tests 2016-03-21 21:35:04 +00:00
Item Bug 16686: Add test for Koha::Item::Transfer[s] and Koha::Item->get_transfer 2016-09-02 13:56:03 +00:00
Patron Bug 17792: Add opac_editable and opac_display methods 2017-03-24 18:44:03 +00:00
Authorities.t Bug 17935: Adjust some POD lines, fix a few typos 2017-02-14 14:12:50 +00:00
BiblioFrameworks.t Bug 16155: [QA Follow-up] Add transaction to BiblioFrameworks.t 2016-05-04 13:47:58 +00:00
BiblioUtils.t Bug 12478: fix some issues on rebase 2016-04-26 20:20:09 +00:00
Biblios.t Bug 17630: Add the Koha::Biblio->holds method 2016-12-16 14:51:53 +00:00
Checkouts.t Bug 17973: Add the Koha::Checkout->item method 2017-02-17 12:11:30 +00:00
Cities.t Bug 15081: (followup) Make test files using TestBuilder handle their transactions 2015-11-04 12:32:57 -03:00
CsvProfiles.t Bug 15451: Add the 2 new modules Koha::CsvProfile[s] 2016-07-22 17:18:34 +00:00
GetDailyQuote.t
…
IsKohaFieldLinked.t Bug 12874: A DB field without a default mapping is set to a default value on editing 2014-10-11 12:57:11 -03:00
IssuingRules.t Bug 17783: Replace ok with is 2016-12-23 12:01:57 +00:00
ItemTypes.t Bug 12748: (QA followup) make new tests pass 2016-04-26 20:20:14 +00:00
Items.t Bug 17974: Add the Koha::Item->biblio method 2017-02-17 12:11:54 +00:00
Libraries.t Bug 15629: Koha::Libraries - Remove GetBranchesInCategory (1) 2016-02-24 03:55:05 +00:00
MarcSubfieldStructures.t Bug 17249: Remove GetKohaAuthorisedValuesFromField - Add classes MarcSubfieldStructure[s] 2016-10-21 15:13:55 +00:00
News.t Bug 17960: Add opac_news.content values in tests 2017-02-06 17:42:13 +00:00
Notices.t Bug 17958: Add tests for Koha::Notice::Template[s] 2017-02-17 11:44:34 +00:00
Object.t Bug 17932: (followup) Tidy tests 2017-02-17 15:33:01 +00:00
Objects.t Bug 17783: Add Koha::Objects->single 2016-12-23 12:01:56 +00:00
Patrons.t Bug 18169: Add test without before parameter for search_patrons_to_anonymise 2017-03-03 18:16:55 +00:00
Ratings.t Bug 17089: [QA Follow-up] Add some test descriptions to Ratings.t 2016-09-09 09:31:30 +00:00
Reviews.t Bug 15839: Koha::Reviews - Remove approvereview & unapprovereview 2016-09-09 10:29:57 +00:00
SMS_Providers.t Bug 9021 [QA Followup] - Unit tests 2016-02-14 12:40:07 +00:00
Suggestions.t Bug 14757: Add tests for new modules 2016-07-08 13:47:42 +00:00