PHP Class Contao\CoreBundle\Test\Doctrine\Schema\DcaSchemaProviderTest

Inheritance: extends Contao\CoreBundle\Test\TestCase
Datei anzeigen Open project: contao/core-bundle

Public Methods

Method Description
createSchemaProvider ( ) : array Provides the data for the schema test.
testCreateSchema ( array $dca = [], array $sql = [] ) Tests creating a schema.
testEmptySchema ( ) Tests that the schema is empty.
testFulltextIndex ( ) Tests adding a fulltext index.
testIndexWithKeyLength ( ) Tests adding an index with a key length.
testInstantiation ( ) Tests the object instantiation.
testInvalidKey ( ) Tests parsing an invalid key.
testInvalidPrimaryKey ( ) Tests parsing an invalid primary key.
testTableCreateDefinitions ( ) Tests the table create definitions.
testTableOptions ( ) Test the table options.

Protected Methods

Method Description
getProvider ( array $dca = [], array $file = [] ) : DcaSchemaProvider Returns a DCA schema provider.
mockContainerWithDatabaseInstaller ( array $dca = [], array $file = [] ) : Symfony\Component\DependencyInjection\Container | PHPUnit_Framework_MockObject_MockObject Returns a container with database installer.

Method Details

createSchemaProvider() public method

Provides the data for the schema test.
public createSchemaProvider ( ) : array
return array

getProvider() protected method

Returns a DCA schema provider.
protected getProvider ( array $dca = [], array $file = [] ) : DcaSchemaProvider
$dca array
$file array
return Contao\CoreBundle\Doctrine\Schema\DcaSchemaProvider

mockContainerWithDatabaseInstaller() protected method

Returns a container with database installer.
protected mockContainerWithDatabaseInstaller ( array $dca = [], array $file = [] ) : Symfony\Component\DependencyInjection\Container | PHPUnit_Framework_MockObject_MockObject
$dca array
$file array
return Symfony\Component\DependencyInjection\Container | PHPUnit_Framework_MockObject_MockObject

testCreateSchema() public method

Tests creating a schema.
public testCreateSchema ( array $dca = [], array $sql = [] )
$dca array
$sql array

testEmptySchema() public method

Tests that the schema is empty.
public testEmptySchema ( )

testFulltextIndex() public method

Tests adding a fulltext index.
public testFulltextIndex ( )

testIndexWithKeyLength() public method

Tests adding an index with a key length.

testInstantiation() public method

Tests the object instantiation.
public testInstantiation ( )

testInvalidKey() public method

Tests parsing an invalid key.
public testInvalidKey ( )

testInvalidPrimaryKey() public method

Tests parsing an invalid primary key.

testTableCreateDefinitions() public method

Tests the table create definitions.

testTableOptions() public method

Test the table options.
public testTableOptions ( )