PHP Класс Contao\CoreBundle\Test\Doctrine\Schema\DcaSchemaProviderTest

Наследование: extends Contao\CoreBundle\Test\TestCase
Показать файл Открыть проект

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

Метод Описание
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.

Защищенные методы

Метод Описание
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.

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

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

Provides the data for the schema test.
public createSchemaProvider ( ) : array
Результат array

getProvider() защищенный Метод

Returns a DCA schema provider.
protected getProvider ( array $dca = [], array $file = [] ) : DcaSchemaProvider
$dca array
$file array
Результат Contao\CoreBundle\Doctrine\Schema\DcaSchemaProvider

mockContainerWithDatabaseInstaller() защищенный Метод

Returns a container with database installer.
protected mockContainerWithDatabaseInstaller ( array $dca = [], array $file = [] ) : Symfony\Component\DependencyInjection\Container | PHPUnit_Framework_MockObject_MockObject
$dca array
$file array
Результат Symfony\Component\DependencyInjection\Container | PHPUnit_Framework_MockObject_MockObject

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

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

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

Tests that the schema is empty.
public testEmptySchema ( )

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

Tests adding a fulltext index.
public testFulltextIndex ( )

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

Tests adding an index with a key length.

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

Tests the object instantiation.
public testInstantiation ( )

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

Tests parsing an invalid key.
public testInvalidKey ( )

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

Tests parsing an invalid primary key.

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

Tests the table create definitions.

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

Test the table options.
public testTableOptions ( )