CoreControllerTest extends ControllerTestCase
Tests CoreController
Table of Contents
$migrated | bool | |
---|---|---|
testControllerConstructor() | CoreController | |
testPageIndex() | mixed | |
testJsonAlerts() | mixed | |
testGetAsset_ExceptionNoUrl() | mixed | |
testGetAsset_ExceptionBadUrl() | mixed | |
testGetAsset_ExceptionEmptyUrl() | mixed | |
testGetAsset() | mixed | |
setUp() | Setup test database for controller tests | void |
setupTestDatabase() | Define the test_integration database connection the default one | mixed |
refreshDatabase() | Define hooks to migrate the database before and after each test. | mixed |
usingInMemoryDatabase() | Determine if an in-memory database is being used. | bool |
refreshInMemoryDatabase() | Refresh the in-memory database. | mixed |
refreshTestDatabase() | Refresh a conventional test database. | mixed |
beginDatabaseTransaction() | Handle database transactions on the specified connections. | mixed |
connectionsToTransact() | The database connections that should have transactions. | array |
getRequest() | Request | |
getResponse() | Response |
Properties
$migrated
public
static bool
$migrated
= false
Methods
testControllerConstructor()
public
testControllerConstructor(
)
: CoreController
Return values
CoreControllertestPageIndex()
public
testPageIndex(
$controller :
CoreController
)
: mixed
Parameters
- $controller : CoreController
Tags
Return values
mixedtestJsonAlerts()
public
testJsonAlerts(
$controller :
CoreController
)
: mixed
Parameters
- $controller : CoreController
Tags
Return values
mixedtestGetAsset_ExceptionNoUrl()
public
testGetAsset_ExceptionNoUrl(
$controller :
CoreController
)
: mixed
Parameters
- $controller : CoreController
Tags
Return values
mixedtestGetAsset_ExceptionBadUrl()
public
testGetAsset_ExceptionBadUrl(
$controller :
CoreController
)
: mixed
Parameters
- $controller : CoreController
Tags
Return values
mixedtestGetAsset_ExceptionEmptyUrl()
public
testGetAsset_ExceptionEmptyUrl(
$controller :
CoreController
)
: mixed
Parameters
- $controller : CoreController
Tags
Return values
mixedtestGetAsset()
public
testGetAsset(
$controller :
CoreController
)
: mixed
Parameters
- $controller : CoreController
Tags
Return values
mixedsetUp()
Setup test database for controller tests
public
setUp(
)
: void
setupTestDatabase()
Define the test_integration database connection the default one
public
setupTestDatabase(
)
: mixed
Return values
mixedrefreshDatabase()
Define hooks to migrate the database before and after each test.
public
refreshDatabase(
)
: mixed
Return values
mixedusingInMemoryDatabase()
Determine if an in-memory database is being used.
public
usingInMemoryDatabase(
)
: bool
Return values
boolrefreshInMemoryDatabase()
Refresh the in-memory database.
protected
refreshInMemoryDatabase(
)
: mixed
Return values
mixedrefreshTestDatabase()
Refresh a conventional test database.
protected
refreshTestDatabase(
)
: mixed
Return values
mixedbeginDatabaseTransaction()
Handle database transactions on the specified connections.
protected
beginDatabaseTransaction(
)
: mixed
Return values
mixedconnectionsToTransact()
The database connections that should have transactions.
protected
connectionsToTransact(
)
: array
Return values
arraygetRequest()
protected
getRequest(
[ $args :
array
= [] ]
)
: Request
Parameters
- $args : array = []
Request arguments
Return values
RequestgetResponse()
protected
getResponse(
)
: Response