J. King
925560d4ba
Cleanup
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
8c20411359
Align statement tests with other database driver tests
6 years ago
J. King
f22e53fdc9
Align result tests with driver tests
6 years ago
J. King
aa1b65b5d4
Take a different tack on shared database tests
Tests for different drivers will have their own files, but all derive
from a common prototype test series where applicable, similar to the
existing arrangement for database function tests. However, the prototype
will reside with other test cases rather than in the library path. The
database function test series will hopefully be moved as well in time.
6 years ago
J. King
4e444fd86c
Generic database interface creation in tests
6 years ago
J. King
976672de5b
Test cleanup
6 years ago
J. King
30d6f6db37
Consolidate Db result test series into single file
6 years ago
J. King
ba8e208d79
Partial CLI tests
6 years ago
J. King
d40243a84c
Clean up configuration setting in tests
6 years ago
J. King
ffa7bd5a5d
Fix error in previous commit
6 years ago
J. King
931fe3b585
Move password generation to the User class
This allows user drivers which wish to generate their own passwords to
do so, and those which do not to defer to the built-in generator
6 years ago
J. King
11747c93fd
Strip out unused user management functionality
Tests have been removed as well; new tests are forthcoming
6 years ago
J. King
f64f0c6a22
Whitespace cleanup
6 years ago
J. King
1aa556cf12
Add HTTP authentication support to TTRSS; fixes #133
Also bump version to 0.4.0
6 years ago
J. King
cbc9491f75
CS fixes and version bump
7 years ago
J. King
aa57227097
Use PSR-7 for authentication; fixes #53
7 years ago
J. King
daea0ceb27
Make HTTP message testing generic
assertMessage will test the method and target URL of requests, attributes of server requests, as well as the existing testing of a response's status code. All messages' bodies and header fields are tested for equivalence (with a special case for JSON response bodies).
7 years ago
J. King
90dfeb727a
Implement CORS; fixes #126
7 years ago
J. King
3fa2d38f31
Initial rewrite of REST class; needs more testing, but should be functional
- improves #53
- improves #66
7 years ago
J. King
890f9b07d4
Replace Resquest objects with PSR-7 request messages; improves #53
7 years ago
J. King
9eadd602bd
Replace Response objects with PSR-7 response messages; improves #53
While the test suite passes, this commit yields a broken server: replacing ad hoc request objectss with PSR-7 ones is still required, as is emission of PSR-7 responses. Both will come in subsequent commits, with tests
Diactoros was chosen specifically because it includes facilities for emitting responses, something which is awkward to test. The end of this refactoring should see both the Response and Request classes disappear, and the general REST class fully covered (as well as any speculative additions to AbstractHanlder).
7 years ago
J. King
ddf55e0665
Change session lifetimes to more closely match TTRSS
At least some clients seem to expect the default timeout of one day.
7 years ago
J. King
65b08d1735
Tweak
7 years ago
J. King
bc9ffa0e17
Rewrite SQLite 3 type binding tests
7 years ago
J. King
39cad91b78
CS fixes
7 years ago
J. King
a5318d1b12
Part 2
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
183718204d
Grouped slow tests; improves #113
7 years ago
J. King
dd7d6e44b9
Further fixes for test timezone assumptions
7 years ago
J. King
3f65625090
Ensure tests do not rely in UTC default timezone
Six tests failed if the default timezone was not UTC. These were all due to faulty expectations, however, not faulty output.
7 years ago
J. King
3e42fbdddf
Munge off-by-one dates in tests; fixes #112
7 years ago
J. King
3a07156259
Fix broken test
7 years ago
J. King
0b3b3cb49c
Use SQLite nocase collation; improves #127
7 years ago
J. King
adece521a9
TTRSS: Correct mark toggling; fixes #132
7 years ago
J. King
22cdc8916d
Documentation tweaks and CS fixes
7 years ago
J. King
5cd7268c0a
Added incorrectDbCharset to NCNv1 server status
This has been exposed since version 11.0.3, released before our version 0.1.0, but after implementation work had begun
7 years ago
J. King
91165cdd0d
Fix breakage caused by last comit
7 years ago
J. King
faf00d63ba
Add Database::articleCategoriesGet()
This method retrieves author-supplied categories for articles, used in TTRSS
7 years ago
J. King
2037efce61
Added oldestArticle and latestArticle context options
7 years ago
J. King
50185ab8f6
Change code and type of consantUnknown exception
7 years ago
J. King
b0da9a1d06
Added annotation context to satisfy the TTRSS "has_note" view mode
7 years ago
J. King
b595815eb9
Change NCNv1 handler to use new "typical" articleList fieldset
7 years ago
J. King
c88b5c4f18
Make distinction between modified and marked for articles
Also added various sets of fields to include when listing articles.
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
6c8598d897
Implement contexts for non-recursive folders, and any/no label
Adjusted TTRSS handler accordingly
7 years ago