• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Testing CRUD operations

#1
Hello All !

I am learning about PhpUnit and Php testing.

I tried to find some documentation about testing CRUD operations but I couldn't find anything related to CI.

I believe that the "problem" is that testing CRUD is a integration test, right ?

A basic "script" for testing a Add (POST) operation would be:

1 -> Send a Post request with data to a URL
2 -> Check if the return is right
3 -> Check if the record was inserted into the database

Let's start with the first step:

Question: What is the best way to send POST data from PHP for testing ? Does CI have something to help us with this ?
Reply


Messages In This Thread
Testing CRUD operations - by Poetawd - 10-30-2019, 06:35 PM
RE: Testing CRUD operations - by kilishan - 10-30-2019, 07:36 PM
RE: Testing CRUD operations - by Poetawd - 10-30-2019, 07:51 PM
RE: Testing CRUD operations - by kilishan - 10-30-2019, 08:16 PM
RE: Testing CRUD operations - by Poetawd - 10-30-2019, 08:35 PM
RE: Testing CRUD operations - by kilishan - 10-30-2019, 08:40 PM
RE: Testing CRUD operations - by Poetawd - 10-30-2019, 08:58 PM
RE: Testing CRUD operations - by kilishan - 10-31-2019, 06:27 AM
RE: Testing CRUD operations - by Poetawd - 10-31-2019, 01:58 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.