J. King
16af57cf90
Partially working cleanup tests
1 year ago
J. King
63454b94d9
Fix label tests
1 year ago
J. King
19da22e144
Initial work on refactoring article tests
1 year ago
J. King
b81596a2de
Fix feed test series
1 year ago
J. King
0d6f8d2921
Avoid most deprecation warnings
The Feed class sets dynamic properties on Picofeed classes; this will
need to be completely rewritten. Version 1.2 of the Laminas XML class
also uses a deprecated function, but upgrading it to 1.3 will require
PHP 7.3.
1 year ago
J. King
6958c24be2
Fix most subscription tests
Two tests depend upon article functions which will be addressed in due
course.
2 years ago
J. King
b24a76b744
Fix up the simpler database functions
2 years ago
J. King
2348786a92
Start on replacing Phake with Phony
3 years ago
J. King
771f79323c
Strip out remnants of the authorizer
4 years ago
J. King
4fc208d940
More consistent icon API
4 years ago
J. King
17a2fa96f8
Upgrade to PHPUnit 8
5 years ago
J. King
d0f780d4e6
Unit tests for IN() clause generator
5 years ago
J. King
29667464a1
Remove unnecessary namespace imports
5 years ago
J. King
2628ff7bf4
Make database test helpers generic
5 years ago
J. King
94314f3e6d
Fix test errors when PostgreSQL or MySQL are not available
5 years ago
J. King
86d52c8ff9
Fix test errors when PostgreSQL or MySQL are not available
5 years ago
J. King
38bdde1167
Add access tokens to the db, with relevant code
Tokens are similar to sessions in that they stand in for users, but the
protocol handlers will manage them; Fever login hashes are the
originating use case for them. These must never expire, for example,
and we need to specify their values.
This commit also performs a bit of database clean-up
5 years ago
J. King
ff0c9a3a55
Add functionality for interacting with subscription tags
5 years ago
J. King
14c02d56ac
Implement new context options other than not().
Context handling has also been re-organized to simplify later
implementation of the not() option
5 years ago
J. King
e501fbdc87
Remove the DatabaseInformation class in tests and use traits instead
5 years ago
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
6 years ago
J. King
095fe10aec
Reorganize PDO tests into namespaces
6 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