J. King
140d608f0f
Split feed fetching tests from feed parsing tests
...
Lack of curl should not skip all Feed tests, just those that require curl to be reliable.
2017-06-03 09:06:30 -04:00
J. King
c6b7e653c5
Tests for feedUpdate and feedListStale
...
The update process neglects to handle enclosures; this will have to be fixed
2017-06-02 19:16:36 -04:00
J. King
ed3e3c12d6
More Feed tests: more cache header handling
2017-05-22 13:01:38 -04:00
J. King
590abaf0ef
Start on tests for Feed
...
- Makes use of PHP's internal Web server to deliver expected responses from a real server
- Windows batch file can be used to run tests (Linux and Mac test runners to come later)
- Added PHPUnit to dev dependencies
2017-05-21 17:16:32 -04:00
J. King
a580579627
First set of Database subscription tests
2017-05-10 22:01:00 -04:00
J. King
842e277d43
Implemented NCN API v1-2 folder list
...
- Fixes #2
- Also re-organized REST handling
2017-04-01 23:06:52 -04:00
J. King
b68cea1188
Tests for adding folders
2017-03-31 15:27:59 -04:00
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
2017-03-31 13:24:00 -04:00
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
2017-03-29 23:41:05 -04:00
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
2017-03-28 18:50:00 -04:00
J. King
9d5dab249c
Helper methods for testing Database class
...
May not actually work yet
2017-03-27 23:19:05 -04:00
J. King
536fa5c4fd
Implement NextCloud News version detection
...
- Improves #47
- Still needs wrapping to actually output to clients
2017-03-19 21:50:00 -04:00
J. King
18c8076a0f
Database update tests
2017-03-09 21:39:42 -05:00
J. King
95ee51563d
First battery of SQLite driver tests
2017-03-08 22:16:35 -05:00
J. King
007e3747ef
Various database fixes
...
Authentication appears to be broken with a real database
2017-03-02 20:47:00 -05:00
J. King
b4d178c33f
Remove most PDO stuff
...
PDO will not be supported: the feature-set is less than any of the common native APIs, so why bother?
2017-03-01 22:47:51 -05:00
J. King
176247894d
Tests for Db\ResultSQLite3
2017-03-01 19:00:14 -05:00
J. King
e4852b581a
Start on tests for authorization
2017-02-27 23:04:13 -05:00
J. King
798d7e7ab7
Added synthetic tests for external User drivers
...
Fixed two typos in external driver handling
2017-02-26 22:06:14 -05:00
J. King
574388665a
Tidy up tests and User stuff
...
- Skeleton of mock internal driver
- Skeleton of test suite
- Re-arranged lots of code
- Made drive name localized (improves #37 )
2017-02-17 19:22:50 -05:00
Dustin Wilson
c5fac33398
Converted all hard tabs to soft tabs
2017-02-16 14:29:42 -06:00
J. King
8e2a2c46b1
Refactor test infrastructure to use PSR-4.
2017-02-14 22:34:08 -05:00
J. King
4bc602957c
Last set of language tests
2017-02-11 12:11:14 -05:00
J. King
2c134c76dc
Basic tests for exceptions
2017-02-09 23:05:13 -05:00
J. King
6ec13266fa
Changes to Lang ( fixes #33 ) with tests
2017-02-09 16:39:13 -05:00
J. King
bc6ee434e5
Start of unit tests for Lang class
2017-02-08 16:53:02 -05:00
J. King
f16e490141
First set of unit tests for Conf.php
2017-02-05 19:00:57 -05:00