Skip to content

Commit d7dbbd7

Browse files
committed
test: cover one more case
1 parent e143df8 commit d7dbbd7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/Integration/Cache/CacheTesterTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,4 +140,14 @@ public function test_assert_not_locked_while_locked(): void
140140
$this->expectException(ExpectationFailedException::class);
141141
$lock->assertNotLocked();
142142
}
143+
144+
public function test_lock_assertion_with_different_owner(): void
145+
{
146+
$testingCache = $this->cache->fake();
147+
148+
$actualCache = $this->container->get(Cache::class);
149+
$actualCache->lock('processing')->acquire();
150+
151+
$testingCache->assertLocked('processing');
152+
}
143153
}

0 commit comments

Comments
 (0)