/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
tests/Cache/CacheNullStoreTest.php
53 строки
1 KB
Sumaia Zaman
[13.x] Implement CanFlushLocks on NullStore and MemoizedStore (#59850)
27 апр 2026, 16:59
Не верифицирован
27 апр 2026, 16:59
c500906
Код
Авторство
О чём код?
<?php namespace Illuminate\Tests\Cache; use Illuminate\Cache\NullStore; use PHPUnit\Framework\TestCase; class CacheNullStoreTest extends TestCase { public function testItemsCanNotBeCached() { $store = new NullStore; $store->put('foo', 'bar', 10); $this->assertNull($store->get('foo')); } public function testGetMultipleReturnsMultipleNulls() { $store = new NullStore; $this->assertEquals([ 'foo' => null, 'bar' => null, ], $store->many([ 'foo', 'bar', ])); } public function testIncrementAndDecrementReturnFalse() { $store = new NullStore; $this->assertFalse($store->increment('foo')); $this->assertFalse($store->decrement('foo')); } public function testTouchReturnsFalse(): void { $this->assertFalse((new NullStore)->touch('foo', 30)); } public function testLocksCanBeFlushed(): void { $store = new NullStore; $this->assertTrue($store->flushLocks()); } public function testHasSeparateLockStore(): void { $store = new NullStore; $this->assertFalse($store->hasSeparateLockStore()); } }