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
setUp()
Setup the database schema.
public
setUp(
)
: void
createSchema()
createSchema
protected
createSchema(
)
: mixed
Return values
mixedtearDown()
Tear down the database schema.
public
tearDown(
)
: void
testOneToManyRelationship()
testOneToManyRelationship
public
testOneToManyRelationship(
)
: mixed
Return values
mixedtestSyncOneToMany()
Tests our custom HasManySyncable class.
public
testSyncOneToMany(
)
: mixed
Return values
mixedtestSyncMorphMany()
Tests our custom MorphManySyncable class.
public
testSyncMorphMany(
)
: mixed
Return values
mixedtestBelongsToManyUnique()
testBelongsToManyUnique
public
testBelongsToManyUnique(
)
: mixed
Return values
mixedtestMorphsToManyUnique()
testMorphsToManyUnique
public
testMorphsToManyUnique(
)
: mixed
Tags
Return values
mixedtestMorphsToManyUniqueWithTertiary()
testMorphsToManyUniqueWithTertiary
public
testMorphsToManyUniqueWithTertiary(
)
: mixed
Tags
Return values
mixedtestBelongsToManyUniqueWithTertiary()
testBelongsToManyUniqueWithTertiary
public
testBelongsToManyUniqueWithTertiary(
)
: mixed
Tags
Return values
mixedtestBelongsToManyUniqueWithTertiaryEagerLoad()
testBelongsToManyUniqueWithTertiaryEagerLoad
public
testBelongsToManyUniqueWithTertiaryEagerLoad(
)
: mixed
Tags
Return values
mixedtestBelongsToManyThrough()
Test the ability of a BelongsToManyThrough relationship to retrieve structured data on a single model or set of models.
public
testBelongsToManyThrough(
)
: mixed
Return values
mixedtestBelongsToManyThroughPaginated()
Test the ability of a BelongsToManyThrough relationship to retrieve and count paginated queries.
public
testBelongsToManyThroughPaginated(
)
: mixed
Tags
Return values
mixedtestBelongsToManyThroughPaginatedWithOrderByAggregateColumn()
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
Return values
mixedtestBelongsToManyThroughWithVia()
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
Return values
mixedtestQueryExclude()
testQueryExclude
public
testQueryExclude(
)
: mixed
Return values
mixedtestQueryExcludeOnJoinedTable()
testQueryExcludeOnJoinedTable
public
testQueryExcludeOnJoinedTable(
)
: mixed
Tags
Return values
mixedtestQueryExcludeUseQualifiedNamesOnJoinedTable()
testQueryExcludeUseQualifiedNamesOnJoinedTable
public
testQueryExcludeUseQualifiedNamesOnJoinedTable(
)
: mixed
Tags
Return values
mixedtestQueryExcludeWildcard()
testQueryExcludeWildcard
public
testQueryExcludeWildcard(
)
: mixed
Tags
Return values
mixedconnection()
Get a database connection instance.
protected
connection(
[ $connection :
string
= 'test_integration' ]
)
: Connection
Parameters
- $connection : string = 'test_integration'
[description]
Return values
Connectionschema()
Get a schema builder instance.
protected
schema(
[ $connection :
string
= 'test_integration' ]
)
: Builder
Parameters
- $connection : string = 'test_integration'
Return values
BuildergenerateRoles()
generateRoles
protected
generateRoles(
)
: mixed
Return values
mixedgeneratePermissions()
generatePermissions
protected
generatePermissions(
)
: mixed
Return values
mixedgenerateRolesWithPermissions()
generateRolesWithPermissions
protected
generateRolesWithPermissions(
)
: mixed
Return values
mixedgenerateJobs()
generateJobs
protected
generateJobs(
)
: mixed
Return values
mixedgenerateLocations()
generateLocations
protected
generateLocations(
)
: mixed
Return values
mixedgenerateTasks()
generateTasks
protected
generateTasks(
)
: mixed
Return values
mixedgenerateAssignments()
generateAssignments
protected
generateAssignments(
)
: mixed
Return values
mixedassertBelongsToManyThroughForDavid()
assertBelongsToManyThroughForDavid
protected
assertBelongsToManyThroughForDavid(
$permissions :
array
)
: mixed
Parameters
- $permissions : array
Return values
mixedassertBelongsToManyThroughForAlex()
assertBelongsToManyThroughForAlex
protected
assertBelongsToManyThroughForAlex(
$permissions :
array
)
: mixed
Parameters
- $permissions : array