Skip to content

Commit 0c8a1c1

Browse files
committed
Add acceptance test
1 parent af25396 commit 0c8a1c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/TestKernel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ public function getCacheDir(): string
5959
$cacheDirectory = 'cache';
6060

6161
// create unique cache directory when custom config is provided
62-
if ($this->resourceServiceConfig !== null || $this->persistenceConfig !== null) {
63-
$cacheDirectory = '/cache/' . hash('sha256', implode('', ($this->resourceServiceConfig ?? []) + ($this->persistenceConfig ?? [])));
62+
if (null !== $this->resourceServiceConfig || null !== $this->persistenceConfig) {
63+
$cacheDirectory = '/cache/' . hash('sha256', serialize(($this->resourceServiceConfig ?? []) + ($this->persistenceConfig ?? [])));
6464
}
6565

6666
return \sprintf('%s/tests/.kernel/' . $cacheDirectory, $this->getProjectDir());

0 commit comments

Comments
 (0)