DbTestCase

Database test case. Tests that need access to Doctrine's entity manager (e.g. for writing to and querying the database) should extend off this class. For every test, this starts a transaction during setUp, and rolls back any changes to the database during tearDown. A fresh database should have been installed when bootstrapping PHPUnit.
extends Omeka\Test\TestCase
Methods Summary
public
# setUp( )
Set the test application and begin a transaction during setUp. Child classes should call parent::setUp() in their own setUp.

Overrides

public
# tearDown( )
Rollback the transaction during tear down.

Overrides

public static
# getApplication( )
Get the test application.
public static
# dropSchema( )
Drop the test database schema.
public static
# installSchema( )
Install the test database schema.
Methods inherited from Omeka\Test\TestCase
getServiceManager(), getEntityManager(), getEntityRepository(), getQueryBuilder(), getQuery()
Methods inherited from PHPUnit_Framework_TestCase
__construct(), toString(), count(), getAnnotations(), getName(), getSize(), getActualOutput(), hasOutput(), expectOutputRegex(), expectOutputString(), hasPerformedExpectationsOnOutput(), hasExpectationOnOutput(), getExpectedException(), setExpectedException(), setExpectedExceptionRegExp(), setExpectedExceptionFromAnnotation(), setUseErrorHandler(), setUseErrorHandlerFromAnnotation(), checkRequirements(), getStatus(), getStatusMessage(), hasFailed(), run(), runBare(), runTest(), verifyMockObjects(), setName(), setDependencies(), hasDependencies(), setDependencyInput(), setDisallowChangesToGlobalState(), setBackupGlobals(), setBackupStaticAttributes(), setRunTestInSeparateProcess(), setPreserveGlobalState(), setInIsolation(), isInIsolation(), getResult(), setResult(), setOutputCallback(), getTestResultObject(), setTestResultObject(), iniSet(), setLocale(), getMock(), getMockBuilder(), getMockClass(), getMockForAbstractClass(), getMockFromWsdl(), getMockForTrait(), getObjectForTrait(), prophesize(), addToAssertionCount(), getNumAssertions(), any(), never(), atLeast(), atLeastOnce(), once(), exactly(), atMost(), at(), returnValue(), returnValueMap(), returnArgument(), returnCallback(), returnSelf(), throwException(), onConsecutiveCalls(), getDataSetAsString(), createResult(), handleDependencies(), setUpBeforeClass(), setUp(), assertPreConditions(), assertPostConditions(), tearDown(), tearDownAfterClass(), onNotSuccessfulTest(), prepareTemplate(), getMockObjectGenerator()
Methods inherited from PHPUnit_Framework_Assert
assertArrayHasKey(), assertArraySubset(), assertArrayNotHasKey(), assertContains(), assertAttributeContains(), assertNotContains(), assertAttributeNotContains(), assertContainsOnly(), assertContainsOnlyInstancesOf(), assertAttributeContainsOnly(), assertNotContainsOnly(), assertAttributeNotContainsOnly(), assertCount(), assertAttributeCount(), assertNotCount(), assertAttributeNotCount(), assertEquals(), assertAttributeEquals(), assertNotEquals(), assertAttributeNotEquals(), assertEmpty(), assertAttributeEmpty(), assertNotEmpty(), assertAttributeNotEmpty(), assertGreaterThan(), assertAttributeGreaterThan(), assertGreaterThanOrEqual(), assertAttributeGreaterThanOrEqual(), assertLessThan(), assertAttributeLessThan(), assertLessThanOrEqual(), assertAttributeLessThanOrEqual(), assertFileEquals(), assertFileNotEquals(), assertStringEqualsFile(), assertStringNotEqualsFile(), assertFileExists(), assertFileNotExists(), assertTrue(), assertNotTrue(), assertFalse(), assertNotFalse(), assertNotNull(), assertNull(), assertClassHasAttribute(), assertClassNotHasAttribute(), assertClassHasStaticAttribute(), assertClassNotHasStaticAttribute(), assertObjectHasAttribute(), assertObjectNotHasAttribute(), assertSame(), assertAttributeSame(), assertNotSame(), assertAttributeNotSame(), assertInstanceOf(), assertAttributeInstanceOf(), assertNotInstanceOf(), assertAttributeNotInstanceOf(), assertInternalType(), assertAttributeInternalType(), assertNotInternalType(), assertAttributeNotInternalType(), assertRegExp(), assertNotRegExp(), assertSameSize(), assertNotSameSize(), assertStringMatchesFormat(), assertStringNotMatchesFormat(), assertStringMatchesFormatFile(), assertStringNotMatchesFormatFile(), assertStringStartsWith(), assertStringStartsNotWith(), assertStringEndsWith(), assertStringEndsNotWith(), assertXmlFileEqualsXmlFile(), assertXmlFileNotEqualsXmlFile(), assertXmlStringEqualsXmlFile(), assertXmlStringNotEqualsXmlFile(), assertXmlStringEqualsXmlString(), assertXmlStringNotEqualsXmlString(), assertEqualXMLStructure(), assertSelectCount(), assertSelectRegExp(), assertSelectEquals(), assertTag(), assertNotTag(), assertThat(), assertJson(), assertJsonStringEqualsJsonString(), assertJsonStringNotEqualsJsonString(), assertJsonStringEqualsJsonFile(), assertJsonStringNotEqualsJsonFile(), assertJsonFileNotEqualsJsonFile(), assertJsonFileEqualsJsonFile(), logicalAnd(), logicalOr(), logicalNot(), logicalXor(), anything(), isTrue(), callback(), isFalse(), isJson(), isNull(), attribute(), contains(), containsOnly(), containsOnlyInstancesOf(), arrayHasKey(), equalTo(), attributeEqualTo(), isEmpty(), fileExists(), greaterThan(), greaterThanOrEqual(), classHasAttribute(), classHasStaticAttribute(), objectHasAttribute(), identicalTo(), isInstanceOf(), isType(), lessThan(), lessThanOrEqual(), matchesRegularExpression(), matches(), stringStartsWith(), stringContains(), stringEndsWith(), countOf(), fail(), readAttribute(), getStaticAttribute(), getObjectAttribute(), markTestIncomplete(), markTestSkipped(), getCount(), resetCount()
Properties Summary
protected static Zend\Mvc\Application $application
The test application.
# NULL
Properties inherited from PHPUnit_Framework_TestCase
$backupGlobals, $backupGlobalsBlacklist, $backupStaticAttributes, $backupStaticAttributesBlacklist, $runTestInSeparateProcess, $preserveGlobalState