Skip to content

Commit cebe300

Browse files
committed
Use a valid directory to not break the test
1 parent 111898a commit cebe300

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/Doctrine/Tests/ORM/Tools/SetupTest.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -68,21 +68,21 @@ public function testXMLConfiguration()
6868
*/
6969
public function testCacheNamespaceShouldBeGeneratedWhenCacheIsNotGiven() : void
7070
{
71-
$config = Setup::createConfiguration(false, '/foo');
71+
$config = Setup::createConfiguration(false, __DIR__);
7272
$cache = $config->getMetadataCacheImpl();
7373

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

7777
/**
7878
* @group 5904
7979
*/
8080
public function testCacheNamespaceShouldBeGeneratedWhenCacheIsGivenButHasNoNamespace() : void
8181
{
82-
$config = Setup::createConfiguration(false, '/foo', new ArrayCache());
82+
$config = Setup::createConfiguration(false, __DIR__, new ArrayCache());
8383
$cache = $config->getMetadataCacheImpl();
8484

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

8888
/**
@@ -93,11 +93,11 @@ public function testConfiguredCacheNamespaceShouldBeUsedAsPrefixOfGeneratedNames
9393
$originalCache = new ArrayCache();
9494
$originalCache->setNamespace('foo');
9595

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

9999
self::assertSame($originalCache, $cache);
100-
self::assertSame('foo:dc2_1effb2475fcfba4f9e8b8a1dbc8f3caf_', $cache->getNamespace());
100+
self::assertSame('foo:dc2_a627434a6e484d05c284461c9abcfb8c_', $cache->getNamespace());
101101
}
102102

103103
/**

0 commit comments

Comments
 (0)