Skip to content
Advertisement

Testing method which need log in

I want to testing some method like user (method need log in user).

JavaScript

I have this error (I don’t know hov I can add all error so I show parts of that):

JavaScript

This same problem I have, if I tryed use Factory like on docs. How I can solve my problem?

Advertisement

Answer

I believe you are using sqlite for mocking the database in PHPUnit In case of php5

JavaScript

of in case of php7

JavaScript

than restart the apache server

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement