Commit graph

1396 commits

Author SHA1 Message Date
7785eb072b Complete rewrite of User class and other changes
- User-related database methods will now throw User\Exception upon errors
- Internal userAdd method can now generate random passwords
- Pursuant to above, dependency on password genrator has been added, and password-related methods now return strings instead of booleans
- User class methods now all explicitly follow different branches for internal/external/missing implementations
- various User class methods now perform auto-provisioning of the internal database when external implementations report success on users not in the database
- Tests have been adjusted to account for the above changes
- Lots is probably still broken
2017-02-20 17:04:13 -05:00
26989facfe More PicoFeed Integration Bug fixes
• Fixed a bug where the feed object’s variable was being reused as the
id for adding feeds to subscriptions
• Modified inline documentation
• Added a TODO for populating the articles table when adding a new feed
2017-02-20 11:58:26 -06:00
cb664eab03 Minor fixes to PicoFeed integration 2017-02-19 18:33:03 -06:00
e5d825d360 Started integration of PicoFeed
• Integrated PicoFeed into Database->subscriptionAdd
• Added exception handling for feeds
• Added static method for formatting SQL dates into Db/Common
2017-02-19 16:02:03 -06:00
e6feb8de8d First basic test for User class
As the User class depends on the database and this has yet to be tested (though I'm fairly certain it works), the mock driver also acts as a mock of the required database functions, with both instances sharing a common storage structure. Later test series should separate the two.
2017-02-19 00:22:16 -05:00
574388665a Tidy up tests and User stuff
- Skeleton of mock internal driver
- Skeleton of test suite
- Re-arranged lots of code
- Made drive name localized (improves #37)
2017-02-17 19:22:50 -05:00
8db31cf3e4 Tweaked Lang; added comments and tests
Tweaks:
- get() method can now report loaded and well as wanted locale
- msg() passed without vars still gets formatted to catch malformed strings
- set('en', false) followed by set('en', true) will now immediately load
- Lang::$synched was not getting set to true properly

Tests:
- Added test for get()
- Added test for malformed strings (exception code was missing)
- Added test for missing strings
- Added test for strings taking variables not being passed any variables
2017-02-16 17:50:34 -05:00
555babe84b Updated composer.lock file for picofeed 2017-02-16 15:41:50 -05:00
c5fac33398 Converted all hard tabs to soft tabs 2017-02-16 14:29:42 -06:00
8afa1cb5bb Class names from classes themselves in defaults 2017-02-16 15:14:15 -05:00
f302861662 Added ETag to SQL schema and picoFeed as requirement in composer 2017-02-16 14:09:41 -06:00
8e2a2c46b1 Refactor test infrastructure to use PSR-4. 2017-02-14 22:34:08 -05:00
e44ba18d2d composer.lock should be in the repository 2017-02-11 15:03:22 -05:00
c8274eca74 Moved base exception code to abstract class
This allows differentiating specific and general exceptions in tests; a library-wide trap would have to trap AbstractException
2017-02-11 14:56:02 -05:00
c213b5928d move code out of vendor tree into lib 2017-02-11 14:48:48 -05:00
b8445fe8a7 Remove debug code 2017-02-11 13:51:54 -05:00
849294d082 Clean up test names; add Lang & Exception tests 2017-02-11 13:50:34 -05:00
91274b9bf9 Merge branch 'master' of https://code.jkingweb.ca/jking/arsse 2017-02-11 12:11:26 -05:00
4bc602957c Last set of language tests 2017-02-11 12:11:14 -05:00
34c83e059d Changed User\Driver->authorize to return a type-hint of bool 2017-02-11 10:36:17 -06:00
2c134c76dc Basic tests for exceptions 2017-02-09 23:05:13 -05:00
f78048317e Refactor language test boilerplate into trait 2017-02-09 16:56:30 -05:00
fcfc7863f1 Properly clean up after Lang tests 2017-02-09 16:47:33 -05:00
6ec13266fa Changes to Lang (fixes #33) with tests 2017-02-09 16:39:13 -05:00
9491d082ed Added Composer file and re-arranged dependent libs 2017-02-09 11:01:24 -05:00
3a9753fd22 Clean up tests a little 2017-02-08 16:59:16 -05:00
bc6ee434e5 Start of unit tests for Lang class 2017-02-08 16:53:02 -05:00
ad0f28b8cc Clean up the Conf test a bit 2017-02-08 10:00:38 -05:00
9bffb46aa8 Use unparsed strings for mock file data 2017-02-06 18:50:34 -05:00
f16e490141 First set of unit tests for Conf.php 2017-02-05 19:00:57 -05:00
8f77cbba1e Tweaks 2016-11-19 09:44:13 -05:00
9ed4bb6f5b Added authorization checks throughout 2016-11-03 22:54:27 -04:00
646b44c9cf Functioning (but still incomplete) user management 2016-10-28 08:27:35 -04:00
793a5e2c1b Finally a working start with the database 2016-10-18 11:42:21 -04:00
1df238a25c Better database update routine 2016-10-17 16:49:39 -04:00
b2b71c4557 Start of higher-level database interface 2016-10-15 09:45:23 -04:00
84675bc404 more binding types (all strings in SQLite) 2016-10-05 22:45:49 -04:00
7a66b28310 Added database exception error codes 2016-10-05 22:20:45 -04:00
6ffe942f99 SQLite3 database driver in working condition
PDO stub for now; other drivers to come
2016-10-05 22:08:43 -04:00
03b86c222f Start on SQLite database driver 2016-10-02 17:07:17 -04:00
2e5e229474 Fixes to Lang class 2016-09-30 19:03:30 -04:00
db0bd18663 Localization class, and other improvements
Language file format will almost certainly change
2016-09-29 21:58:09 -04:00
4639dd1c46 Stub of Conf class; schema tweaks 2016-09-27 09:00:02 -04:00
c3bc913240 Add modification timestamps for ownCloud API 2016-09-24 17:22:01 -04:00
b4ad50e492 Initial database schema for SQLite
Probably incomplete or erroneous
2016-09-22 22:49:18 -04:00
471a004ea7 Create repository 2016-09-17 07:55:45 -04:00