[Koha-bugs] [Bug 18299] Removal of SQL queries from admin/ env_tz_test.pl script into a perl module

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sat Mar 18 22:33:01 CET 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18299

Alex Buckley <alexbuckley at catalyst.net.nz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |Needs Signoff

--- Comment #2 from Alex Buckley <alexbuckley at catalyst.net.nz> ---
Test Plan:

1. Restart memcached: sudo service memcached restart

2. Drop and recreate the Koha instance database

3. Go through the web installer, selecting all data to be installed in step 3

4. After the web installer is finished log in with the Koha database 
administrator credentials

5. Create yourself a patron account 

6. Set the patron account to have superlibrarian privileges 

7. Log out and back in as your newly created patron

8. Navigate to the Administration area

9. Write in the URL: cgi-bin/koha/admin/env_tz_test.pl

10. Notice a  page titled with "Dumping ENV". Scroll down and observe the
current time printed below the "Checking different TIME elements in the system"
title

11. Apply all patches associated with this bug report 

12. Repeat steps 1,2,3,4,5,6,7,8,9

13. Again notice the current time is displayed below the "Checking different
TIME elements in the system" title

14. In your terminal navigate from your Koha instance root directory to
t/db_dependent

15. Enter koha shell: sudo koha-shell <instancename>

16. Run Context.t unit test: prove -v Context.t

17. The tests should run successful

18. Exit the koha shell

19. Navigate back to your Koha instance root directory

20. View admin/env_tz_test.pl script and observe it contains no SQL queries

21. Navigate back to your Koha instance root directory

22. View C4/Context.pm and notice that the get_env_variables and
get_current_time subroutines (the subroutines called by env_tz_test.pl to run
the SQL queries) contain POD

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list