@@ -62,7 +62,7 @@ public function testBasicUsage()
62
62
$ this ->cache ->clearTags (['tag1 ' ]);
63
63
64
64
// The item should be removed
65
- $ this ->assertFalse ($ this ->cache ->hasItem ('key ' ));
65
+ $ this ->assertFalse ($ this ->cache ->hasItem ('key ' ), ' Tags does not seams to be saved ' );
66
66
}
67
67
68
68
public function testMultipleTags ()
@@ -124,15 +124,15 @@ public function testRemoveTagWhenItemIsRemoved()
124
124
return ;
125
125
}
126
126
127
- $ item = $ this ->cache ->getItem ('key ' );
127
+ $ item = $ this ->cache ->getItem ('key ' )-> set ( ' value ' ) ;
128
128
$ item ->setTags (['tag1 ' ]);
129
129
130
130
// Save the item and then delete it
131
131
$ this ->cache ->save ($ item );
132
132
$ this ->cache ->deleteItem ('key ' );
133
133
134
134
// Create a new item (no tags)
135
- $ item = $ this ->cache ->getItem ('key ' );
135
+ $ item = $ this ->cache ->getItem ('key ' )-> set ( ' value ' ) ;
136
136
$ this ->cache ->save ($ item );
137
137
138
138
// Clear the tag
@@ -148,14 +148,14 @@ public function testClear()
148
148
return ;
149
149
}
150
150
151
- $ item = $ this ->cache ->getItem ('key ' );
151
+ $ item = $ this ->cache ->getItem ('key ' )-> set ( ' value ' ) ;
152
152
$ item ->setTags (['tag1 ' ]);
153
153
$ this ->cache ->save ($ item );
154
154
155
155
$ this ->cache ->clear ();
156
156
157
157
// Create a new item (no tags)
158
- $ item = $ this ->cache ->getItem ('key ' );
158
+ $ item = $ this ->cache ->getItem ('key ' )-> set ( ' value ' ) ;
159
159
$ this ->cache ->save ($ item );
160
160
$ this ->cache ->clearTags (['tag1 ' ]);
161
161
@@ -170,14 +170,14 @@ public function testClearTag()
170
170
return ;
171
171
}
172
172
173
- $ item = $ this ->cache ->getItem ('key ' );
173
+ $ item = $ this ->cache ->getItem ('key ' )-> set ( ' value ' ) ;
174
174
$ item ->setTags (['tag1 ' ]);
175
175
$ this ->cache ->save ($ item );
176
176
177
177
$ this ->cache ->clearTags (['tag1 ' ]);
178
178
179
179
// Create a new item (no tags)
180
- $ item = $ this ->cache ->getItem ('key ' );
180
+ $ item = $ this ->cache ->getItem ('key ' )-> set ( ' value ' ) ;
181
181
$ this ->cache ->save ($ item );
182
182
$ this ->cache ->clearTags (['tag1 ' ]);
183
183
0 commit comments