Skip to content

Commit 87d64cd

Browse files
authored
Merge pull request #29615 from laravel/5.5-test-fixes
[5.5] Fixed cache tests
2 parents 4c6c24f + e14e4d7 commit 87d64cd

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/Cache/CacheRepositoryTest.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,18 +116,16 @@ public function testPuttingMultipleItemsInCache()
116116

117117
public function testSettingMultipleItemsInCacheArray()
118118
{
119-
// Alias of PuttingMultiple
120119
$repo = $this->getRepository();
121120
$repo->getStore()->shouldReceive('putMany')->once()->with(['foo' => 'bar', 'bar' => 'baz'], 1);
122-
$repo->setMultiple(['foo' => 'bar', 'bar' => 'baz'], 1);
121+
$repo->setMultiple(['foo' => 'bar', 'bar' => 'baz'], 60);
123122
}
124123

125124
public function testSettingMultipleItemsInCacheIterator()
126125
{
127-
// Alias of PuttingMultiple
128126
$repo = $this->getRepository();
129127
$repo->getStore()->shouldReceive('putMany')->once()->with(['foo' => 'bar', 'bar' => 'baz'], 1);
130-
$repo->setMultiple(new ArrayIterator(['foo' => 'bar', 'bar' => 'baz']), 1);
128+
$repo->setMultiple(new ArrayIterator(['foo' => 'bar', 'bar' => 'baz']), 60);
131129
}
132130

133131
public function testPutWithDatetimeInPastOrZeroSecondsDoesntSaveItem()
@@ -210,7 +208,7 @@ public function testSettingCache()
210208
{
211209
$repo = $this->getRepository();
212210
$repo->getStore()->shouldReceive('put')->with($key = 'foo', $value = 'bar', 1);
213-
$repo->set($key, $value, 1);
211+
$repo->set($key, $value, 60);
214212
}
215213

216214
public function testClearingWholeCache()

0 commit comments

Comments
 (0)