UserFrosting API

DatabaseTests extends TestCase

Table of Contents

$schemaName string
setUp() Setup the database schema. void
createSchema() createSchema mixed
tearDown() Tear down the database schema. void
testOneToManyRelationship() testOneToManyRelationship mixed
testSyncOneToMany() Tests our custom HasManySyncable class. mixed
testSyncMorphMany() Tests our custom MorphManySyncable class. mixed
testBelongsToManyUnique() testBelongsToManyUnique mixed
testMorphsToManyUnique() testMorphsToManyUnique mixed
testMorphsToManyUniqueWithTertiary() testMorphsToManyUniqueWithTertiary mixed
testBelongsToManyUniqueWithTertiary() testBelongsToManyUniqueWithTertiary mixed
testBelongsToManyUniqueWithTertiaryEagerLoad() testBelongsToManyUniqueWithTertiaryEagerLoad mixed
testBelongsToManyThrough() Test the ability of a BelongsToManyThrough relationship to retrieve structured data on a single model or set of models. mixed
testBelongsToManyThroughPaginated() Test the ability of a BelongsToManyThrough relationship to retrieve and count paginated queries. mixed
testBelongsToManyThroughPaginatedWithOrderByAggregateColumn() Test the ability of a BelongsToManyThrough relationship to retrieve and count paginated queries, when we need to reference a virtual/computed column (for example in a sort). mixed
testBelongsToManyThroughWithVia() Test the ability of a BelongsToManyThrough relationship to retrieve structured data on a single model or set of models, eager loading the "via" models at the same time. mixed
testQueryExclude() testQueryExclude mixed
testQueryExcludeOnJoinedTable() testQueryExcludeOnJoinedTable mixed
testQueryExcludeUseQualifiedNamesOnJoinedTable() testQueryExcludeUseQualifiedNamesOnJoinedTable mixed
testQueryExcludeWildcard() testQueryExcludeWildcard mixed
connection() Get a database connection instance. Connection
schema() Get a schema builder instance. Builder
generateRoles() generateRoles mixed
generatePermissions() generatePermissions mixed
generateRolesWithPermissions() generateRolesWithPermissions mixed
generateJobs() generateJobs mixed
generateLocations() generateLocations mixed
generateTasks() generateTasks mixed
generateAssignments() generateAssignments mixed
assertBelongsToManyThroughForDavid() assertBelongsToManyThroughForDavid mixed
assertBelongsToManyThroughForAlex() assertBelongsToManyThroughForAlex mixed

Properties

$schemaName

protected string $schemaName = 'test_integration'

Methods

createSchema()

createSchema

protected createSchema( ) : mixed
Return values
mixed

tearDown()

Tear down the database schema.

public tearDown( ) : void

testOneToManyRelationship()

testOneToManyRelationship

public testOneToManyRelationship( ) : mixed
Return values
mixed

testSyncOneToMany()

Tests our custom HasManySyncable class.

public testSyncOneToMany( ) : mixed
Return values
mixed

testSyncMorphMany()

Tests our custom MorphManySyncable class.

public testSyncMorphMany( ) : mixed
Return values
mixed

testBelongsToManyUnique()

testBelongsToManyUnique

public testBelongsToManyUnique( ) : mixed
Return values
mixed

testMorphsToManyUnique()

testMorphsToManyUnique

public testMorphsToManyUnique( ) : mixed
Tags
depends

testBelongsToManyUnique

Return values
mixed

testMorphsToManyUniqueWithTertiary()

testMorphsToManyUniqueWithTertiary

public testMorphsToManyUniqueWithTertiary( ) : mixed
Tags
depends

testMorphsToManyUnique

Return values
mixed

testBelongsToManyUniqueWithTertiary()

testBelongsToManyUniqueWithTertiary

public testBelongsToManyUniqueWithTertiary( ) : mixed
Tags
depends

testBelongsToManyUnique

Return values
mixed

testBelongsToManyUniqueWithTertiaryEagerLoad()

testBelongsToManyUniqueWithTertiaryEagerLoad

public testBelongsToManyUniqueWithTertiaryEagerLoad( ) : mixed
Tags
depends

testBelongsToManyUniqueWithTertiary

Return values
mixed

testBelongsToManyThrough()

Test the ability of a BelongsToManyThrough relationship to retrieve structured data on a single model or set of models.

public testBelongsToManyThrough( ) : mixed
Return values
mixed

testBelongsToManyThroughPaginated()

Test the ability of a BelongsToManyThrough relationship to retrieve and count paginated queries.

public testBelongsToManyThroughPaginated( ) : mixed
Tags
depends

testBelongsToManyThrough

Return values
mixed

testBelongsToManyThroughPaginatedWithOrderByAggregateColumn()

Test the ability of a BelongsToManyThrough relationship to retrieve and count paginated queries, when we need to reference a virtual/computed column (for example in a sort).

public testBelongsToManyThroughPaginatedWithOrderByAggregateColumn( ) : mixed
Tags
depends

testBelongsToManyThrough

Return values
mixed

testBelongsToManyThroughWithVia()

Test the ability of a BelongsToManyThrough relationship to retrieve structured data on a single model or set of models, eager loading the "via" models at the same time.

public testBelongsToManyThroughWithVia( ) : mixed
Tags
depends

testBelongsToManyThrough

Return values
mixed

testQueryExclude()

testQueryExclude

public testQueryExclude( ) : mixed
Return values
mixed

testQueryExcludeOnJoinedTable()

testQueryExcludeOnJoinedTable

public testQueryExcludeOnJoinedTable( ) : mixed
Tags
depends

testQueryExclude

Return values
mixed

testQueryExcludeUseQualifiedNamesOnJoinedTable()

testQueryExcludeUseQualifiedNamesOnJoinedTable

public testQueryExcludeUseQualifiedNamesOnJoinedTable( ) : mixed
Tags
depends

testQueryExclude

Return values
mixed

testQueryExcludeWildcard()

testQueryExcludeWildcard

public testQueryExcludeWildcard( ) : mixed
Tags
depends

testQueryExclude

Return values
mixed

connection()

Get a database connection instance.

protected connection( [ $connection : string = 'test_integration' ] ) : Connection
Parameters
$connection : string = 'test_integration'

[description]

Return values
Connection

schema()

Get a schema builder instance.

protected schema( [ $connection : string = 'test_integration' ] ) : Builder
Parameters
$connection : string = 'test_integration'
Return values
Builder

generateRoles()

generateRoles

protected generateRoles( ) : mixed
Return values
mixed

generatePermissions()

generatePermissions

protected generatePermissions( ) : mixed
Return values
mixed

generateRolesWithPermissions()

generateRolesWithPermissions

protected generateRolesWithPermissions( ) : mixed
Return values
mixed

generateJobs()

generateJobs

protected generateJobs( ) : mixed
Return values
mixed

generateLocations()

generateLocations

protected generateLocations( ) : mixed
Return values
mixed

generateTasks()

generateTasks

protected generateTasks( ) : mixed
Return values
mixed

generateAssignments()

generateAssignments

protected generateAssignments( ) : mixed
Return values
mixed

assertBelongsToManyThroughForDavid()

assertBelongsToManyThroughForDavid

protected assertBelongsToManyThroughForDavid( $permissions : array ) : mixed
Parameters
$permissions : array
Return values
mixed

assertBelongsToManyThroughForAlex()

assertBelongsToManyThroughForAlex

protected assertBelongsToManyThroughForAlex( $permissions : array ) : mixed
Parameters
$permissions : array
Return values
mixed

Search results