PHP Class Bolt\Tests\Storage\StorageTest

Author: Ross Riley ([email protected])
Inheritance: extends Bolt\Tests\BoltUnitTest
Datei anzeigen Open project: bolt/bolt

Public Methods

Method Description
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 ( )

Private Methods

Method Description
getDbMockBuilder ( Doctrine\DBAL\Connection $db )

Method Details

contentTypeProvider() public method

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

testDeleteContent() public method

public testDeleteContent ( )

testDepublishExpiredRecords() public method

testGetContent() public method

public testGetContent ( )

testGetContentByTaxonomy() public method

testGetContentObject() public method

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() public method

testGetContentSortOrderFromContentType() public method

testGetContentType() public method

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() public method

testGetContentTypeFields() public method

testGetContentTypeGrouping() public method

testGetContentTypeTaxonomy() public method

testGetContentTypes() public method

public testGetContentTypes ( )

testGetEmptyContent() public method

public testGetEmptyContent ( )

testGetLatestId() public method

public testGetLatestId ( )

testGetPager() public method

public testGetPager ( )

testGetSortOrder() public method

public testGetSortOrder ( )

testGetTaxonomyType() public method

public testGetTaxonomyType ( )

testGetUri() public method

public testGetUri ( )

testPreFill() public method

public testPreFill ( )

testPublishTimedRecords() public method

testSaveContent() public method

public testSaveContent ( )

testSearchAllContentTypes() public method

testSearchContent() public method

public testSearchContent ( )

testSearchContentType() public method

testSetPager() public method

public testSetPager ( )

testSetup() public method

public testSetup ( )

testUpdateSingleValue() public method