1
0
mirror of synced 2025-01-23 08:41:41 +03:00

Removing too eager cache tests

This commit is contained in:
Marco Pivetta 2014-04-10 04:54:41 +02:00 committed by fabios
parent b4933d76c7
commit 9ab6ef723a

View File

@ -10,16 +10,6 @@ use Doctrine\Common\Collections\ArrayCollection;
*/
class DDC742Test extends \Doctrine\Tests\OrmFunctionalTestCase
{
/**
* @var string
*/
private $testDir;
/**
* @var FilesystemCache
*/
private $cache;
/**
* {@inheritDoc}
*/
@ -31,11 +21,8 @@ class DDC742Test extends \Doctrine\Tests\OrmFunctionalTestCase
mkdir($testDir);
$this->testDir = $testDir;
$this->cache = new FilesystemCache($testDir);
// 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 {
$this->_schemaTool->createSchema(array(
@ -50,15 +37,6 @@ class DDC742Test extends \Doctrine\Tests\OrmFunctionalTestCase
$this->_em->getMetadataFactory()->setMetadataFor(__NAMESPACE__ . '\DDC742Comment', null);
}
/**
* {@inheritDoc}
*/
protected function tearDown()
{
$this->cache->deleteAll();
rmdir($this->testDir);
}
public function testIssue()
{
$user = new DDC742User();