Posts by Cardoso Dev • 13 points
4 posts
-
0
votes0
answers65
viewsQ: How to Protect Firebase Credentials
I have a php application that consumes the firebase service Account api. I use the.json credential file provided by firebase. I would like to know how I can protect this file from improper access?…
-
0
votes1
answer16
viewsA: Phpunit : What is the best way to test a list?
It was divergence in the array indexes. I did otherwise and it worked. What’s the best way to do that? public function test_get_list_without_criteria() { $data = ["specialist_name" => "o…
phpunitanswered Cardoso Dev 13 -
0
votes1
answer16
viewsQ: Phpunit : What is the best way to test a list?
I’m doing it this way, but it makes a mistake: public function test_get_list_without_criteria() { $data = ["specialist_name" => "o especialista"]; $data2 = ["specialist_name" => "o…
phpunitasked Cardoso Dev 13 -
1
votes1
answer50
viewsQ: How to maintain cohesion in my REST API?
I have two features of a REST API Specialists and Services. An expert can perform various services. I needed to list all services that have at least one associate expert. get services/? criteria get…