PHP Class Crud\Test\TestCase\Action\EditActionTest

Inheritance: extends Crud\TestSuite\IntegrationTestCase
Datei anzeigen Open project: friendsofcake/crud

Public Properties

Property Type Description
$fixtures array fixtures property
$tableClass string Table class to mock on

Public Methods

Method Description
testActionGet ( ) : void Test the normal HTTP GET flow of _get
testActionGetWithQueryArgs ( ) : void Test the normal HTTP GET flow of _get with query args
testActionPost ( ) : void Test POST will create a record
testActionPostErrorSave ( ) : void Test POST with unsuccessful save()
testActionPostValidationErrors ( ) : void Test POST with validation errors

Method Details

testActionGet() public method

Test the normal HTTP GET flow of _get
public testActionGet ( ) : void
return void

testActionGetWithQueryArgs() public method

Providing ?name=test should fill out the value in the 'name' input field
public testActionGetWithQueryArgs ( ) : void
return void

testActionPost() public method

Test POST will create a record
public testActionPost ( ) : void
return void

testActionPostErrorSave() public method

Test POST with unsuccessful save()
public testActionPostErrorSave ( ) : void
return void

testActionPostValidationErrors() public method

Test POST with validation errors

Property Details

$fixtures public_oe property

fixtures property
public array $fixtures
return array

$tableClass public_oe property

Table class to mock on
public string $tableClass
return string