Removing too eager cache tests
This commit is contained in:
parent
b4933d76c7
commit
9ab6ef723a
@ -10,16 +10,6 @@ use Doctrine\Common\Collections\ArrayCollection;
|
|||||||
*/
|
*/
|
||||||
class DDC742Test extends \Doctrine\Tests\OrmFunctionalTestCase
|
class DDC742Test extends \Doctrine\Tests\OrmFunctionalTestCase
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private $testDir;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @var FilesystemCache
|
|
||||||
*/
|
|
||||||
private $cache;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
@ -31,11 +21,8 @@ class DDC742Test extends \Doctrine\Tests\OrmFunctionalTestCase
|
|||||||
|
|
||||||
mkdir($testDir);
|
mkdir($testDir);
|
||||||
|
|
||||||
$this->testDir = $testDir;
|
|
||||||
$this->cache = new FilesystemCache($testDir);
|
|
||||||
|
|
||||||
// using a Filesystemcache to ensure that the cached data is serialized
|
// using a Filesystemcache to ensure that the cached data is serialized
|
||||||
$this->_em->getMetadataFactory()->setCacheDriver($this->cache);
|
$this->_em->getMetadataFactory()->setCacheDriver(new FilesystemCache($testDir));
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$this->_schemaTool->createSchema(array(
|
$this->_schemaTool->createSchema(array(
|
||||||
@ -50,15 +37,6 @@ class DDC742Test extends \Doctrine\Tests\OrmFunctionalTestCase
|
|||||||
$this->_em->getMetadataFactory()->setMetadataFor(__NAMESPACE__ . '\DDC742Comment', null);
|
$this->_em->getMetadataFactory()->setMetadataFor(__NAMESPACE__ . '\DDC742Comment', null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritDoc}
|
|
||||||
*/
|
|
||||||
protected function tearDown()
|
|
||||||
{
|
|
||||||
$this->cache->deleteAll();
|
|
||||||
rmdir($this->testDir);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function testIssue()
|
public function testIssue()
|
||||||
{
|
{
|
||||||
$user = new DDC742User();
|
$user = new DDC742User();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user