Skip to content

Commit

Permalink
split
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoala authored Jul 17, 2023
1 parent 0a76d4e commit 9561555
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/Collections/CachedConfigCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function testCacheHit()
$collection->__destruct();
}

public function testCacheOnDestruct()
public function testCacheNotSavedOnDestruct()
{
$mockCache = $this->getMockBuilder(CacheInterface::class)->getMock();

Expand All @@ -81,7 +81,10 @@ public function testCacheOnDestruct()

// Trigger __destruct() to validate that cache set() is not called again since there were no changes
$collection->__destruct();
}

public function testCacheSavedOnDestruct()
{
$mockCache = $this->getMockBuilder(CacheInterface::class)->getMock();

$mockCollection = $this->getMockBuilder(ConfigCollectionInterface::class)->getMock();
Expand Down

0 comments on commit 9561555

Please sign in to comment.