@@ -24,18 +24,18 @@ public function test_process_events_with_associated_identifiers_within_window():
24
24
// Mock data
25
25
$ now = now ();
26
26
$ events = collect ([
27
- (object )[
28
- 'id ' => 1 ,
29
- 'type ' => 'key ' ,
30
- 'identifier ' => 'article_ID:7 ' ,
31
- 'reason ' => 'Article 7 removed ' ,
32
- 'connection_name ' => 'default ' ,
33
- 'shard ' => 0 ,
34
- 'priority ' => 0 ,
35
- 'event_time ' => $ now ,
36
- 'partition_key ' => 0 ,
37
- ],
38
- ]);
27
+ (object )[
28
+ 'id ' => 1 ,
29
+ 'type ' => 'key ' ,
30
+ 'identifier ' => 'article_ID:7 ' ,
31
+ 'reason ' => 'Article 7 removed ' ,
32
+ 'connection_name ' => 'default ' ,
33
+ 'shard ' => 0 ,
34
+ 'priority ' => 0 ,
35
+ 'event_time ' => $ now ,
36
+ 'partition_key ' => 0 ,
37
+ ],
38
+ ]);
39
39
40
40
Config::set ('super_cache_invalidate.invalidation_window ' , 0 );
41
41
@@ -47,7 +47,6 @@ public function test_process_events_with_associated_identifiers_within_window():
47
47
48
48
$ partitionCache_invalidation_events = $ this ->helper ->getCacheInvalidationEventsUnprocessedPartitionName (0 , 0 );
49
49
50
-
51
50
DB ::shouldReceive ('raw ' )
52
51
->once ()
53
52
->with ("`cache_invalidation_events` PARTITION ( {$ partitionCache_invalidation_events }) " )
@@ -61,9 +60,10 @@ public function test_process_events_with_associated_identifiers_within_window():
61
60
;
62
61
63
62
DB ::shouldReceive ('select ' )
64
- ->once ()
65
- ->with (['id ' , 'type ' , 'identifier ' , 'connection_name ' , 'partition_key ' , 'event_time ' ])
66
- ->andReturnSelf ();
63
+ ->once ()
64
+ ->with (['id ' , 'type ' , 'identifier ' , 'connection_name ' , 'partition_key ' , 'event_time ' ])
65
+ ->andReturnSelf ()
66
+ ;
67
67
68
68
DB ::shouldReceive ('where ' )
69
69
->once ()
@@ -112,10 +112,10 @@ public function test_process_events_with_associated_identifiers_within_window():
112
112
->andReturn ($ events )
113
113
;
114
114
115
- //DB::shouldReceive('toArray')
115
+ // DB::shouldReceive('toArray')
116
116
// ->once()
117
117
// ->andReturn($events->toArray())
118
- //;
118
+ // ;
119
119
120
120
// CHIAVE
121
121
// Mock Cache
@@ -211,7 +211,7 @@ public function test_process_events_with_associated_identifiers_within_window():
211
211
->andReturn (true )
212
212
;
213
213
214
- //DB::shouldReceive('commit')->once();
214
+ // DB::shouldReceive('commit')->once();
215
215
Redis::connection ('default ' )->del ('shard_lock:0_0 ' );
216
216
// Run the command
217
217
// Run the command
0 commit comments