Welcome Guest, Not a member yet? Register   Sign In
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
RE: Testing CRUD operations - by asadali - 01-14-2022, 03:59 AM
RE: Testing CRUD operations - by kenjis - 01-14-2022, 04:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB