1
0
mirror of synced 2025-02-09 00:39:25 +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 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();