| Total Complexity | 3 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class IdStoreTest extends TestCase |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var IdStore |
||
| 16 | */ |
||
| 17 | private $store; |
||
| 18 | /** |
||
| 19 | * @var \Prophecy\Prophecy\ObjectProphecy |
||
| 20 | */ |
||
| 21 | private $cacheManager; |
||
| 22 | /** |
||
| 23 | * @var \Prophecy\Prophecy\ObjectProphecy |
||
| 24 | */ |
||
| 25 | private $cache; |
||
| 26 | |||
| 27 | protected function setUp() |
||
| 28 | { |
||
| 29 | $this->cache = $this->prophesize(FrontendInterface::class); |
||
| 30 | |||
| 31 | $this->cacheManager = $this->prophesize(CacheManager::class); |
||
| 32 | $this->cacheManager->getCache(IdStore::CACHE_KEY)->willReturn($this->cache->reveal()); |
||
| 33 | |||
| 34 | $this->store = new IdStore(); |
||
| 35 | $this->store->injectCacheManager($this->cacheManager->reveal()); |
||
| 36 | } |
||
| 37 | |||
| 38 | public function testHas() |
||
| 43 | } |
||
| 44 | |||
| 45 | public function testSet() |
||
| 51 | } |
||
| 52 | } |
||
| 53 |