J. King
f7e50fe95d
Passed code through linter
7 years ago
J. King
3a26c75044
Tests for Database::meta*() functions
Improves #49
7 years ago
J. King
da092d5f8c
Changed Misc\DateFormatter to a collection of static methods and renamed it to Date; renamed Data to Arsse to avoid confusion and better reflect its centrality
7 years ago
J. King
7e458dddbc
More test re-organization
7 years ago
J. King
845b47e656
Re-organize test data for Database tests
7 years ago
J. King
78e669fbfc
Improvements to database test harness
7 years ago
J. King
0bc2841837
Last of subscription tests
- Also tweaked SQL dateformat() function to output proper HTTP dates
- Also introduced method to set a default output date format
7 years ago
J. King
ef3cb4fa54
Test unread counts in subscriptionList
7 years ago
J. King
f635155687
Basic tests for subscription list
- Need entries and read marks to fully test
- Added assertion type to test result subsets
- Fixed custom subscription titles
7 years ago
J. King
554beacfdb
Improved database tests
- Centralized initial state; this will be useful due to foreign key interdependence
- Added nextID() method to make insert tests less brittle
7 years ago
J. King
2083c6e397
Change transactions to auto-rollback on exceptions
8 years ago
J. King
717e74fb2e
Refactored special case for testing
8 years ago
J. King
a67fe30408
Fix whitespace
Also fixed my editor so tabs won't happen again!
8 years ago
J. King
1e1b848c62
Remove root field from folders table
The field is no longer required with the use of recursive common table expressions, and presents a possible loss of referential integrity
8 years ago
J. King
b68cea1188
Tests for adding folders
8 years ago
J. King
82e4838162
Re-organize Database tests
- Test files now consist entirely of traits:
- General setup trait mocking User class and cleaning up
- Driver trait to set up the database connection
- Series trait containing tests for the series, independent of driver used
8 years ago
J. King
dbd735f1f3
Full set of tests for user-related Database funcs
- Fixed a few inconsistencies and bugs along the way
- User manager tests need some equivalent fleshing out
8 years ago
J. King
f902346b6c
Eliminated passing of RuntimeData instances
- RuntimeData has now been replaced by a single static Data class
- The Data class has a load() method which fills the same role as the constructor of RuntimeData
- The static Lang class is now an instantiable class and is a member of Data
- All tests have been adjusted and pass
- The Exception tests no longer require convoluted workarounds: a simple mock for Data::$l suffices; Lang tests also use a mock to prevent loops now instead of using a workaround
8 years ago
J. King
2b8aa75ee3
Row index is not a string
8 years ago
Dustin Wilson
7236020b8b
Changed "NewsSync" to "Arsse"
8 years ago
J. King
9d5dab249c
Helper methods for testing Database class
May not actually work yet
8 years ago