J. King
afe26fb8e1
Style fixes
3 years ago
J. King
b5579d6e43
Support PHP 8.1
3 years ago
J. King
b660508009
Improve MySQL test performance
3 years ago
J. King
ad32bf3340
Style fixes
3 years ago
J. King
514cb0a351
Ow
3 years ago
J. King
5cfa01f4d5
Work around MySQL stupidity
4 years ago
J. King
64ca5f1be0
Fix strict comparison failures
4 years ago
J. King
4642b9fd1c
PRovide upgrade path for assertRegExp
4 years ago
J. King
3a1fcaac39
Remove last uses of Phake
4 years ago
J. King
2348786a92
Start on replacing Phake with Phony
4 years ago
J. King
68422390da
Implement CLI for user metadata
4 years ago
J. King
54a6fcc0d6
Consolidate object factoriesinto one place
4 years ago
J. King
727864f401
Implement feed listing by category
Also modify user list to reflect changes in Miniflux 2.0.27.
4 years ago
J. King
4972c79e32
Allow simpler feed exception creation
4 years ago
J. King
5124f76b70
Implementcategory deletion
4 years ago
J. King
41bcffd6fb
Correctly query PostgreSQL byte arrays
This required different workarouynd for the native and PDO interfaces
4 years ago
J. King
3ac010d5b6
Fix tests in absence of database extensions
4 years ago
J. King
bc53a2d24a
Style fixes
5 years ago
J. King
06d3af0ac3
Fix remaining Picofeed-related test failures
5 years ago
J. King
bbace7a0ac
Use void and nullable return types where practical
5 years ago
J. King
5838af892f
Replace references to Zend with Laminas
5 years ago
J. King
737dd9f6b8
Fix foreign keys in MySQL
5 years ago
J. King
c59cdfef76
Whitespace fixes
5 years ago
J. King
71c7cd8fb1
Full coverage! Fixes #66
5 years ago
J. King
64c3ec3571
Coverage fixes and OPML bugfix
5 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
29667464a1
Remove unnecessary namespace imports
5 years ago
J. King
bab4174a17
Move database driver helps out of test cases
5 years ago
J. King
13b76dea0c
Tests for generic importing
5 years ago
J. King
0480465e7e
Test Fever XML responses
Fixes #158
5 years ago
J. King
103755cfb4
Test fixture for import tests
5 years ago
J. King
cb71a9efd7
Make database connections for testing configurable
5 years ago
J. King
2628ff7bf4
Make database test helpers generic
5 years ago
J. King
9ebaa20633
Tests for Fever password creation and removal
6 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
6 years ago
J. King
e501fbdc87
Remove the DatabaseInformation class in tests and use traits instead
6 years ago
J. King
81acba90dc
Use strict equality when comparing strings
6 years ago
J. King
c4a41255b0
Experimental native MySQL driver
No testing has been performed yet, but changes are extensive enough to
warrant a commit. Of particular note:
- SQL states are enumerated in a separate trait to reduce duplication
- PDOStatement is now an abstract class to avoid duplication of
engine-specific error handling
- Error handling has been cleaned up somewhat
6 years ago
J. King
f0d30c2eee
Make munging of queries a generic feature
6 years ago
J. King
24df564045
Mostly successful MySQL database function tests
Two failures remain, at least one requiring query munging.
6 years ago
J. King
4ef36643a4
Proof-of-concept PDO MySQL driver
- Configuration options were added
- Non-transactional locking was added to the savepoint handlers
- Tests were adjusted for MySQL's reserved words
6 years ago
J. King
2bebdd44cf
Implementation of native PostgreSQL interface
Changes to the Database class were required to avoid outputting booleans
6 years ago
J. King
0513b606c2
Merge master
6 years ago
J. King
f7b9a2a6cf
Fixes for PHPUnit 7
6 years ago
J. King
cf896121b2
Style fixes
6 years ago
J. King
4a1c23ba45
Munge PostgreSQL queries instead of adding explicit casts
PDO does not adequately inform PostgreSQL of a parameter's type, so type
casts are required. Rather than adding these to each query manually, the
queries are instead processed to add type hints automatically.
Unfortunately the queries are processed rather naively; question-mark
characters in string constants, identifiers, regex patterns, or geometry
operators will break things spectacularly.
6 years ago
J. King
93af381436
Test setting of schema name
6 years ago
J. King
1414f8979c
Fix savepoint handling and locking in PostgreSQL driver
6 years ago
J. King
8a49202036
Use common cleanup code for all database-related tests
6 years ago