Skip to content

Commit

Permalink
Removed useless test case
Browse files Browse the repository at this point in the history
  • Loading branch information
swayok committed Apr 12, 2021
1 parent a3a58de commit 0aaebbe
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions tests/Feature/AlternativeLaravelCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,28 +209,4 @@ public function testMemcachedLocks() {
}
}

public function testTaggedCacheConflicts() {
/** @var AlternativeRedisCacheStore|Repository $redisStore */
$redisStore = $this->getCache()->store('redis');
/** @var AlternativeFileCacheStore|Repository $fileStore */
$fileStore = $this->getCache()->store('file');
/** @var AlternativeFileCacheStore|Repository $hierarchialFileStore */
$hierarchialFileStore = $this->getCache()->store('hierarchial_file');

$redisStore->flush();
$fileStore->flush();
$hierarchialFileStore->flush();

$key = 'test';
$tag1 = 'tag1';
$tag2 = 'tag2';

// redis
$redisStore->tags([$tag1])->remember($key, 1000, function () {
return 1;
});
static::assertEquals(1, $redisStore->get($key));
static::assertEquals(1, $redisStore->tags([$tag1])->get($key));
static::assertEquals(1, $redisStore->tags([$tag2])->get($key));
}
}

0 comments on commit 0aaebbe

Please sign in to comment.