@@ 65-74 (lines=10) @@ | ||
62 | /** |
|
63 | * Test that CacheStorageInterface::has() is called |
|
64 | */ |
|
65 | public function testHas() |
|
66 | { |
|
67 | $key = 'key'; |
|
68 | $this->storageMock->expects($this->once()) |
|
69 | ->method('has') |
|
70 | ->with( |
|
71 | $this->equalTo($key) |
|
72 | ); |
|
73 | $this->cache->has($key); |
|
74 | } |
|
75 | ||
76 | /** |
|
77 | * Test that CacheStorageInterface::set() is called |
|
@@ 98-107 (lines=10) @@ | ||
95 | /** |
|
96 | * Test that CacheStorageInterface::get() is called |
|
97 | */ |
|
98 | public function testGet() |
|
99 | { |
|
100 | $key = 'key'; |
|
101 | $this->storageMock->expects($this->once()) |
|
102 | ->method('get') |
|
103 | ->with( |
|
104 | $this->equalTo($key) |
|
105 | ); |
|
106 | $this->cache->get($key); |
|
107 | } |
|
108 | ||
109 | /** |
|
110 | * Test that CacheStorageInterface::delete() is called |
|
@@ 112-121 (lines=10) @@ | ||
109 | /** |
|
110 | * Test that CacheStorageInterface::delete() is called |
|
111 | */ |
|
112 | public function testDelete() |
|
113 | { |
|
114 | $key = 'key'; |
|
115 | $this->storageMock->expects($this->once()) |
|
116 | ->method('delete') |
|
117 | ->with( |
|
118 | $this->equalTo($key) |
|
119 | ); |
|
120 | $this->cache->delete($key); |
|
121 | } |
|
122 | } |
|
123 |