@@ -24,18 +24,18 @@ public function test_process_events_with_associated_identifiers_within_window():
2424 // Mock data
2525 $ now = now ();
2626 $ 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+ ]);
3939
4040 Config::set ('super_cache_invalidate.invalidation_window ' , 0 );
4141
@@ -47,7 +47,6 @@ public function test_process_events_with_associated_identifiers_within_window():
4747
4848 $ partitionCache_invalidation_events = $ this ->helper ->getCacheInvalidationEventsUnprocessedPartitionName (0 , 0 );
4949
50-
5150 DB ::shouldReceive ('raw ' )
5251 ->once ()
5352 ->with ("`cache_invalidation_events` PARTITION ( {$ partitionCache_invalidation_events }) " )
@@ -61,9 +60,10 @@ public function test_process_events_with_associated_identifiers_within_window():
6160 ;
6261
6362 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+ ;
6767
6868 DB ::shouldReceive ('where ' )
6969 ->once ()
@@ -112,10 +112,10 @@ public function test_process_events_with_associated_identifiers_within_window():
112112 ->andReturn ($ events )
113113 ;
114114
115- //DB::shouldReceive('toArray')
115+ // DB::shouldReceive('toArray')
116116 // ->once()
117117 // ->andReturn($events->toArray())
118- //;
118+ // ;
119119
120120 // CHIAVE
121121 // Mock Cache
@@ -211,7 +211,7 @@ public function test_process_events_with_associated_identifiers_within_window():
211211 ->andReturn (true )
212212 ;
213213
214- //DB::shouldReceive('commit')->once();
214+ // DB::shouldReceive('commit')->once();
215215 Redis::connection ('default ' )->del ('shard_lock:0_0 ' );
216216 // Run the command
217217 // Run the command
0 commit comments