Skip to content

Commit

Permalink
Use a valid directory to not break the test
Browse files Browse the repository at this point in the history
  • Loading branch information
lcobucci committed Dec 31, 2017
1 parent 111898a commit cebe300
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/Doctrine/Tests/ORM/Tools/SetupTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,21 +68,21 @@ public function testXMLConfiguration()
*/
public function testCacheNamespaceShouldBeGeneratedWhenCacheIsNotGiven() : void
{
$config = Setup::createConfiguration(false, '/foo');
$config = Setup::createConfiguration(false, __DIR__);
$cache = $config->getMetadataCacheImpl();

self::assertSame('dc2_1effb2475fcfba4f9e8b8a1dbc8f3caf_', $cache->getNamespace());
self::assertSame('dc2_a627434a6e484d05c284461c9abcfb8c_', $cache->getNamespace());
}

/**
* @group 5904
*/
public function testCacheNamespaceShouldBeGeneratedWhenCacheIsGivenButHasNoNamespace() : void
{
$config = Setup::createConfiguration(false, '/foo', new ArrayCache());
$config = Setup::createConfiguration(false, __DIR__, new ArrayCache());
$cache = $config->getMetadataCacheImpl();

self::assertSame('dc2_1effb2475fcfba4f9e8b8a1dbc8f3caf_', $cache->getNamespace());
self::assertSame('dc2_a627434a6e484d05c284461c9abcfb8c_', $cache->getNamespace());
}

/**
Expand All @@ -93,11 +93,11 @@ public function testConfiguredCacheNamespaceShouldBeUsedAsPrefixOfGeneratedNames
$originalCache = new ArrayCache();
$originalCache->setNamespace('foo');

$config = Setup::createConfiguration(false, '/foo', $originalCache);
$config = Setup::createConfiguration(false, __DIR__, $originalCache);
$cache = $config->getMetadataCacheImpl();

self::assertSame($originalCache, $cache);
self::assertSame('foo:dc2_1effb2475fcfba4f9e8b8a1dbc8f3caf_', $cache->getNamespace());
self::assertSame('foo:dc2_a627434a6e484d05c284461c9abcfb8c_', $cache->getNamespace());
}

/**
Expand Down

0 comments on commit cebe300

Please sign in to comment.