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
7 years ago
J. King
9d5dab249c
Helper methods for testing Database class
May not actually work yet
7 years ago
J. King
536fa5c4fd
Implement NextCloud News version detection
- Improves #47
- Still needs wrapping to actually output to clients
7 years ago
J. King
18c8076a0f
Database update tests
7 years ago
J. King
95ee51563d
First battery of SQLite driver tests
7 years ago
J. King
007e3747ef
Various database fixes
Authentication appears to be broken with a real database
7 years ago
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?
7 years ago
J. King
176247894d
Tests for Db\ResultSQLite3
7 years ago
J. King
e4852b581a
Start on tests for authorization
7 years ago
J. King
798d7e7ab7
Added synthetic tests for external User drivers
Fixed two typos in external driver handling
7 years ago
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 )
7 years ago
Dustin Wilson
c5fac33398
Converted all hard tabs to soft tabs
7 years ago
J. King
8e2a2c46b1
Refactor test infrastructure to use PSR-4.
7 years ago
J. King
4bc602957c
Last set of language tests
7 years ago
J. King
2c134c76dc
Basic tests for exceptions
7 years ago
J. King
6ec13266fa
Changes to Lang ( fixes #33 ) with tests
7 years ago
J. King
bc6ee434e5
Start of unit tests for Lang class
7 years ago
J. King
f16e490141
First set of unit tests for Conf.php
7 years ago