Dustin Wilson
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
8 years ago
J. King
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.
8 years ago
J. King
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 )
8 years ago
J. King
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
8 years ago
J. King
555babe84b
Updated composer.lock file for picofeed
8 years ago
Dustin Wilson
c5fac33398
Converted all hard tabs to soft tabs
8 years ago
J. King
8afa1cb5bb
Class names from classes themselves in defaults
8 years ago
Dustin Wilson
f302861662
Added ETag to SQL schema and picoFeed as requirement in composer
8 years ago
J. King
8e2a2c46b1
Refactor test infrastructure to use PSR-4.
8 years ago
J. King
e44ba18d2d
composer.lock should be in the repository
8 years ago
J. King
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
8 years ago
J. King
c213b5928d
move code out of vendor tree into lib
8 years ago
J. King
b8445fe8a7
Remove debug code
8 years ago
J. King
849294d082
Clean up test names; add Lang & Exception tests
8 years ago
J. King
91274b9bf9
Merge branch 'master' of https://code.jkingweb.ca/jking/arsse
8 years ago
J. King
4bc602957c
Last set of language tests
8 years ago
Dustin Wilson
34c83e059d
Changed User\Driver->authorize to return a type-hint of bool
8 years ago
J. King
2c134c76dc
Basic tests for exceptions
8 years ago
J. King
f78048317e
Refactor language test boilerplate into trait
8 years ago
J. King
fcfc7863f1
Properly clean up after Lang tests
8 years ago
J. King
6ec13266fa
Changes to Lang ( fixes #33 ) with tests
8 years ago
J. King
9491d082ed
Added Composer file and re-arranged dependent libs
8 years ago
J. King
3a9753fd22
Clean up tests a little
8 years ago
J. King
bc6ee434e5
Start of unit tests for Lang class
8 years ago
J. King
ad0f28b8cc
Clean up the Conf test a bit
8 years ago
J. King
9bffb46aa8
Use unparsed strings for mock file data
8 years ago
J. King
f16e490141
First set of unit tests for Conf.php
8 years ago
J. King
8f77cbba1e
Tweaks
8 years ago
J. King
9ed4bb6f5b
Added authorization checks throughout
8 years ago
J. King
646b44c9cf
Functioning (but still incomplete) user management
8 years ago
J. King
793a5e2c1b
Finally a working start with the database
8 years ago
J. King
1df238a25c
Better database update routine
8 years ago
J. King
b2b71c4557
Start of higher-level database interface
8 years ago
J. King
84675bc404
more binding types (all strings in SQLite)
8 years ago
J. King
7a66b28310
Added database exception error codes
8 years ago
J. King
6ffe942f99
SQLite3 database driver in working condition
PDO stub for now; other drivers to come
8 years ago
J. King
03b86c222f
Start on SQLite database driver
8 years ago
J. King
2e5e229474
Fixes to Lang class
8 years ago
J. King
db0bd18663
Localization class, and other improvements
Language file format will almost certainly change
8 years ago
J. King
4639dd1c46
Stub of Conf class; schema tweaks
8 years ago
J. King
c3bc913240
Add modification timestamps for ownCloud API
8 years ago
J. King
b4ad50e492
Initial database schema for SQLite
Probably incomplete or erroneous
8 years ago
J. King
471a004ea7
Create repository
8 years ago