PHP Класс Bolt\Tests\Storage\StorageTest

Автор: Ross Riley ([email protected])
Наследование: extends Bolt\Tests\BoltUnitTest
Показать файл Открыть проект

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

Метод Описание
contentTypeProvider ( ) Seed some dummy content types for testing the contenttype query methods
testDeleteContent ( )
testDepublishExpiredRecords ( )
testGetContent ( )
testGetContentByTaxonomy ( )
testGetContentObject ( ) We copy the 'Pages' ContentType into a 'Fakes' configuration and test against this, as PHPUnit keeps the mock in the $this->mockObjects private property array and any further calls to the 'Pages' repo will (currently) fail as the Application object is torn down at the end of the test/class.
testGetContentReturnSingleLimits1 ( )
testGetContentSortOrderFromContentType ( )
testGetContentType ( $contentType ) The legacy getContentType method should be able to find contenttypes by key, slugified key, slug, slugified slug, singular slug, slugified singular slug, singular name and name.
testGetContentTypeFieldType ( )
testGetContentTypeFields ( )
testGetContentTypeGrouping ( )
testGetContentTypeTaxonomy ( )
testGetContentTypes ( )
testGetEmptyContent ( )
testGetLatestId ( )
testGetPager ( )
testGetSortOrder ( )
testGetTaxonomyType ( )
testGetUri ( )
testPreFill ( )
testPublishTimedRecords ( )
testSaveContent ( )
testSearchAllContentTypes ( )
testSearchContent ( )
testSearchContentType ( )
testSetPager ( )
testSetup ( )
testUpdateSingleValue ( )

Приватные методы

Метод Описание
getDbMockBuilder ( Doctrine\DBAL\Connection $db )

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

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

Seed some dummy content types for testing the contenttype query methods
public contentTypeProvider ( )

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

public testDeleteContent ( )

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

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

public testGetContent ( )

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

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

We copy the 'Pages' ContentType into a 'Fakes' configuration and test against this, as PHPUnit keeps the mock in the $this->mockObjects private property array and any further calls to the 'Pages' repo will (currently) fail as the Application object is torn down at the end of the test/class.

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

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

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

The legacy getContentType method should be able to find contenttypes by key, slugified key, slug, slugified slug, singular slug, slugified singular slug, singular name and name.
public testGetContentType ( $contentType )

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

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

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

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

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

public testGetContentTypes ( )

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

public testGetEmptyContent ( )

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

public testGetLatestId ( )

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

public testGetPager ( )

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

public testGetSortOrder ( )

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

public testGetTaxonomyType ( )

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

public testGetUri ( )

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

public testPreFill ( )

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

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

public testSaveContent ( )

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

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

public testSearchContent ( )

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

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

public testSetPager ( )

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

public testSetup ( )

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