Franz Liedke
ba16ebe61f
Extract pure unit tests so that they can run fast
...
- Move to separate directory (base for a separate test suite)
- Inherit directly from PhpUnit
- Configure test suite with dedicated XML file
2019-02-01 19:01:09 +01:00
Daniël Klabbers
167059027e
Increasing test coverage ( #1711 )
...
* added a few more tests, renamed singular to plural to match controller
* increase error reporting
* removed debugging and wait for tests
2019-01-01 21:02:18 +01:00
Franz Liedke
009ddcdb63
Add regression test for email crawling vulnerability
...
Refs #1628 .
2018-11-09 12:02:26 +01:00
Franz Liedke
d021dc2399
Move trait to base test class
...
This way, its properties can be overwritten in subclasses of
`ApiControllerTestCase`. This isn't allowed when those subclasses
use the trait directly.
2018-11-09 12:02:21 +01:00
Daniël Klabbers
bb0fc165af
[b8] master token fix ( #1622 )
...
* fixed not being able to use master token because id column no longer holds key
* added flexibility of user_id column
* added tests to confirm the api keys actually work as intended
2018-11-07 22:34:09 +01:00
Daniël Klabbers
c446c5cc61
fixes author gambit when used with fulltext search, added test to cover ( #1620 )
...
* fixes author gambit when used with fulltext search, added test to cover
* Apply fixes from StyleCI
[ci skip] [skip ci]
2018-10-29 23:01:25 +01:00
Toby Zerner
70058652b5
Rename user.isActivated
2018-08-24 22:13:05 +09:30
Toby Zerner
582054c61c
Merge branch 'master' into 1236-database-changes
2018-08-24 21:07:00 +09:30
Franz Liedke
034000ea0b
Fix tests after sites refactoring
2018-08-22 07:58:50 +02:00
Daniel Klabbers
2cd77e231f
Merge branch 'master' into 1236-database-changes
2018-06-19 09:57:47 +02:00
Sajjad Hashemian
22f2df3670
rename TokenController to CreateTokenController
2018-06-06 09:40:29 +04:30
Daniël Klabbers
26b02adc9d
Merge branch 'master' into 1236-database-changes
2018-06-03 21:51:01 +02:00
Franz Liedke
b3d45fd6f8
Replace ControllerInterface with PSR-15 interface
...
The custom interface already had the same signature as the
one from the standard (except for the return type hint), so
why not use that one now? :)
2018-05-30 09:49:47 +02:00
Daniel Klabbers
30358e98c0
merged api tests into branch
2018-05-16 09:27:01 +02:00
Daniël Klabbers
e226f81515
additional tests for api controllers ( #1433 )
...
* added CreatePostControllerTest
* added DeleteDiscussionControllerTest
* added ListDiscussionControllerTest
* added TokenControllerTest
* minor improvement to policy, no need for Carbon object there, added ShowDiscussionControllerTest
* added showDiscussionControllerTest but cant make Guests view the discussion created by a user
* viewing for guests tested, we might need factories
2018-05-16 09:25:48 +02:00
Daniel Klabbers
a9501ceae0
Merge branch 'master' into 1236-database-changes
2018-05-14 13:32:48 +02:00
Daniël Klabbers
2a721926d3
adds a few additional api controller tests ( #1429 )
...
* added CreatePostControllerTest
* added DeleteDiscussionControllerTest
* added ListDiscussionControllerTest
* Apply fixes from StyleCI
[ci skip] [skip ci]
2018-05-14 13:32:19 +02:00
Daniel Klabbers
fd859e33be
fixed several column changes found by tests
2018-05-14 11:34:24 +02:00
luceos
371f33e99e
Apply fixes from StyleCI
...
[ci skip] [skip ci]
2018-04-13 07:07:02 +00:00
Daniel Klabbers
264664ac79
added the create discussion test, also renamed some classes that seem to have been incorrectly renamed from the other testing branch
2018-04-13 09:06:42 +02:00
Daniel Klabbers
17f29f83c9
adds api controller tests
2018-04-13 07:52:39 +02:00
Franz Liedke
a061eda019
Change namespace of test classes
...
(as implemented by @luceos in his WIP PR)
2018-03-04 00:01:49 +01:00