friendica-directory icon indicating copy to clipboard operation
friendica-directory copied to clipboard

Add unit tests

Open MrPetovan opened this issue 6 years ago • 4 comments

Since this looks like a Dependency Injection-compliant projects, targeted unit tests should be easy to add, right?

Right?

MrPetovan avatar Nov 12 '18 04:11 MrPetovan

hui .. sounds great :-D

We already introduced one functional test here. So we can now differ between unit-test (= mocking around) and functional-test (= using the App as a whole).

This is something, which we are currently (badly) mixing at Friendica :-) :-) .. So good work with this repo @MrPetovan :-) :-)

nupplaphil avatar Nov 18 '18 16:11 nupplaphil

Where's the functional test?

MrPetovan avatar Nov 18 '18 16:11 MrPetovan

https://github.com/friendica/friendica-directory/blob/master/tests/Functional/BaseTestCase.php

nupplaphil avatar Nov 18 '18 17:11 nupplaphil

Ha, you're right, it was included in the Slim skeleton project.

MrPetovan avatar Nov 19 '18 11:11 MrPetovan