PHP Класс Crud\Test\TestCase\Action\AddActionTest

Наследование: extends Crud\TestSuite\IntegrationTestCase
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$fixtures array fixtures property
$tableClass string Table class to mock on

Открытые методы

Метод Описание
apiGetHttpMethodProvider ( ) : array Data provider with GET and DELETE verbs
apiUpdateHttpMethodProvider ( ) : array Data provider with PUT and POST verbs
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
testActionPostWithAddRedirect ( ) : void Test POST will create a record and redirect to /blogs/add again if _POST['_add'] is present
testActionPostWithEditRedirect ( ) : void Test POST will create a record and redirect to /blogs/edit/$id if _POST['_edit'] is present
testApiCreate ( string $method ) : void Test POST & PUT verbs using API Listener
testApiCreateError ( string $method ) : void Test POST & PUT verbs using API Listener with data validation error
testApiCreateErrors ( string $method ) : void Test POST & PUT verbs using API Listener with data validation errors
testApiGet ( string $method ) : void Test HTTP & DELETE verbs using API Listener

Описание методов

apiGetHttpMethodProvider() публичный Метод

Data provider with GET and DELETE verbs
public apiGetHttpMethodProvider ( ) : array
Результат array

apiUpdateHttpMethodProvider() публичный Метод

Data provider with PUT and POST verbs
public apiUpdateHttpMethodProvider ( ) : array
Результат array

testActionGet() публичный Метод

Test the normal HTTP GET flow of _get
public testActionGet ( ) : void
Результат void

testActionGetWithQueryArgs() публичный Метод

Providing ?name=test should fill out the value in the 'name' input field
public testActionGetWithQueryArgs ( ) : void
Результат void

testActionPost() публичный Метод

Test POST will create a record
public testActionPost ( ) : void
Результат void

testActionPostErrorSave() публичный Метод

Test POST with unsuccessful save()
public testActionPostErrorSave ( ) : void
Результат void

testActionPostValidationErrors() публичный Метод

Test POST with validation errors
public testActionPostValidationErrors ( ) : void
Результат void

testActionPostWithAddRedirect() публичный Метод

Test POST will create a record and redirect to /blogs/add again if _POST['_add'] is present
public testActionPostWithAddRedirect ( ) : void
Результат void

testActionPostWithEditRedirect() публичный Метод

Test POST will create a record and redirect to /blogs/edit/$id if _POST['_edit'] is present
public testActionPostWithEditRedirect ( ) : void
Результат void

testApiCreate() публичный Метод

Test POST & PUT verbs using API Listener
public testApiCreate ( string $method ) : void
$method string
Результат void

testApiCreateError() публичный Метод

Test POST & PUT verbs using API Listener with data validation error
public testApiCreateError ( string $method ) : void
$method string
Результат void

testApiCreateErrors() публичный Метод

Test POST & PUT verbs using API Listener with data validation errors
public testApiCreateErrors ( string $method ) : void
$method string
Результат void

testApiGet() публичный Метод

Test HTTP & DELETE verbs using API Listener
public testApiGet ( string $method ) : void
$method string
Результат void

Описание свойств

$fixtures публичное свойство

fixtures property
public array $fixtures
Результат array

$tableClass публичное свойство

Table class to mock on
public string $tableClass
Результат string