J. King
64ec3f6ae4
Use unused variable
2 years ago
J. King
4d18bf27e2
Adjust most uses of Diactoros to Guzzle PSR-7
2 years ago
J. King
6c0183faea
Replace instances of Diactoros' EmptyResponse
2 years ago
J. King
983fa58ec8
Convert article and edition ranges to atomic
Unit tests for ranges are still missing
2 years ago
J. King
2c2bb4a856
Retrofits dates to use ranges
Article and edition ranges still need work
2 years ago
J. King
75148bfbc6
Convert NCNv1 tests to PHony
3 years ago
J. King
2348786a92
Start on replacing Phake with Phony
3 years ago
J. King
b7c7915a65
Enforce admin rquirements in NCNv1
3 years ago
J. King
4972c79e32
Allow simpler feed exception creation
3 years ago
J. King
e74b44cc39
Change favicon to icon_url and add icon_id
3 years ago
J. King
b2fae336e8
Adjust Nextcloud News to ignore hidden items
3 years ago
J. King
bc53a2d24a
Style fixes
4 years ago
J. King
b5f118e8cb
Cleanup
4 years ago
J. King
bbace7a0ac
Use void and nullable return types where practical
4 years ago
J. King
5838af892f
Replace references to Zend with Laminas
4 years ago
J. King
14ef33879b
Re-arrange database tests by engine
4 years ago
J. King
c4ee7254cd
Refactor some tests to use data providers
4 years ago
J. King
bbe70b6abc
Corect CamelCase references to Nextcloud
4 years ago
J. King
17a2fa96f8
Upgrade to PHPUnit 8
5 years ago
J. King
c5337b37b4
Consolidate creation of synthetic server requests
5 years ago
J. King
6235cb0be6
Fix errors in last commit
5 years ago
J. King
29667464a1
Remove unnecessary namespace imports
5 years ago
J. King
12f23ddc16
Updated tests for arbitrary sorting
5 years ago
J. King
b950ac066f
Restrict options in not-context and hopefully make it easier to use
5 years ago
J. King
5cd84c4ab4
Validate configuration parameters on import, and other changes
- Each parameter is checked for type and normalized
- Interval strings are converted to DateInterval objects
- Timeouts can be specified as interval strings
- Most intervals can be null to signify infinity
- Driver classes are checked that they implement the correct interface
- Short driver names may be used, and are used by default
- Helpful errors messages are printed in case of erroneous configuration
Exporting is currently broken; this will be fixed in an upcoming commit
5 years ago
J. King
0513b606c2
Merge master
5 years ago
J. King
b9272ea2eb
Fix test failures in PHP 7.1
5 years ago
J. King
51755a2ce6
Retire article field groups
5 years ago
J. King
7340d65c0e
Make data clearing in tests static
6 years ago
J. King
f22e53fdc9
Align result tests with driver tests
6 years ago
J. King
3b3b810f10
Replicate some unspecified NCNv1 behaviour, and document the rest
See #139 for list
Closes #139
Closes #140
Closes #141
6 years ago
J. King
4869559fb3
Test NCNv1 user query
6 years ago
J. King
d40243a84c
Clean up configuration setting in tests
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
cbc9491f75
CS fixes and version bump
6 years ago
J. King
cef061f6cd
Fix tests
6 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).
6 years ago
J. King
890f9b07d4
Replace Resquest objects with PSR-7 request messages; improves #53
6 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).
6 years ago
J. King
029c23d0cf
Adapt API tests to allow for PDO mocks
6 years ago
J. King
095fe10aec
Reorganize PDO tests into namespaces
6 years ago
J. King
59fee52074
Reorganize tests into namespaces
6 years ago
J. King
3adfe8742f
Reorganize test cases
6 years ago
J. King
a404d4d108
NCNv1: Be explicit about types; fixes #129
This is actually mandated by the specification: a change in data type requires a protocol version number change
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
3d958547a5
Implement OPTIONS requests for NCNv1; fixes #107
7 years ago
J. King
e1f1c8b859
Refactoring
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