J. King
0513b606c2
Merge master
6 years ago
J. King
cf896121b2
Style fixes
6 years ago
J. King
22941f5ad1
Fix session tests
PostgreSQL now passes all tests. Connection and permission errors still
need to be accounted
for before the implementation is complete.
6 years ago
J. King
10b228224d
Correct PostgreSQL data format and other tweaks
6 years ago
J. King
a75fad53ca
Adapt the rest of the test series
6 years ago
J. King
dccd4caede
Convert one database function test series (articles) to a common harness
Also revert the dropping of tables in the schema files. This was for the
convenience of tests, but the risk of data loss is too great
6 years ago
J. King
7340d65c0e
Make data clearing in tests static
6 years ago
J. King
39110858b7
Move database function test series as first step in re-organization
6 years ago
J. King
f22e53fdc9
Align result tests with driver tests
6 years ago
J. King
d40243a84c
Clean up configuration setting in tests
6 years ago
J. King
39cad91b78
CS fixes
7 years ago
J. King
095fe10aec
Reorganize PDO tests into namespaces
7 years ago
J. King
0785f832de
CS fixes
7 years ago
J. King
4bada691e9
PDO tests and fixes; improves #72
7 years ago
J. King
3e42fbdddf
Munge off-by-one dates in tests; fixes #112
7 years ago
J. King
11b2066922
Added per-file legal boilerplate
Includes PHPDoc license tag in the file-level block with accompanying copyright notice.
Also added an AUTHORS file on the off chance of outside contributions
7 years ago
J. King
65963f228f
CS fixes
7 years ago
J. King
cc875be57e
Backport testing improvements from ttrss branch
7 years ago
J. King
a343b78b02
Make exporting the database test fixture easier
7 years ago
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
7 years ago
J. King
717e74fb2e
Refactored special case for testing
7 years ago
J. King
a67fe30408
Fix whitespace
Also fixed my editor so tabs won't happen again!
7 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
7 years ago
J. King
b68cea1188
Tests for adding folders
7 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
7 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
7 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
7 years ago
J. King
2b8aa75ee3
Row index is not a string
7 years ago
Dustin Wilson
7236020b8b
Changed "NewsSync" to "Arsse"
7 years ago
J. King
9d5dab249c
Helper methods for testing Database class
May not actually work yet
7 years ago