@@ -179,6 +179,7 @@ public function testPerformUsesCache(): void
179179 'collection_id ' => $ collection ->id ,
180180 'user_id ' => $ user ->id ,
181181 ]);
182+ $ this ->mockHttpWithFixture ('https://flus.fr/carnet/ ' , 'responses/flus.fr_carnet_index.html ' );
182183 $ hash = \SpiderBits \Cache::hash ($ feed_url );
183184 $ raw_response = <<<XML
184185 HTTP/2 200 OK
@@ -237,6 +238,7 @@ public function testPerformSavesPublishedDate(): void
237238 'collection_id ' => $ collection ->id ,
238239 'user_id ' => $ user ->id ,
239240 ]);
241+ $ this ->mockHttpWithFixture ('https://flus.fr/carnet/ ' , 'responses/flus.fr_carnet_index.html ' );
240242 $ hash = \SpiderBits \Cache::hash ($ feed_url );
241243 $ raw_response = <<<XML
242244 HTTP/2 200 OK
@@ -386,6 +388,7 @@ public function testPerformDuplicatesLinkUrlIfNotInCollection(): void
386388 'feed_entry_id ' => null ,
387389 'created_at ' => \Minz \Time::now (),
388390 ]);
391+ $ this ->mockHttpWithFixture ('https://flus.fr/carnet/ ' , 'responses/flus.fr_carnet_index.html ' );
389392 $ hash = \SpiderBits \Cache::hash ($ feed_url );
390393 $ raw_response = <<<XML
391394 HTTP/2 200 OK
@@ -489,6 +492,7 @@ public function testPerformUsesIdAsLinkIfEntryHasNoLink(): void
489492 'collection_id ' => $ collection ->id ,
490493 'user_id ' => $ user ->id ,
491494 ]);
495+ $ this ->mockHttpWithFixture ('https://flus.fr/carnet/ ' , 'responses/flus.fr_carnet_index.html ' );
492496 $ hash = \SpiderBits \Cache::hash ($ feed_url );
493497 $ raw_response = <<<XML
494498 HTTP/2 200 OK
@@ -546,6 +550,7 @@ public function testPerformIgnoresEntriesWithNoLink(): void
546550 'collection_id ' => $ collection ->id ,
547551 'user_id ' => $ user ->id ,
548552 ]);
553+ $ this ->mockHttpWithFixture ('https://flus.fr/carnet/ ' , 'responses/flus.fr_carnet_index.html ' );
549554 $ hash = \SpiderBits \Cache::hash ($ feed_url );
550555 $ raw_response = <<<XML
551556 HTTP/2 200 OK
@@ -595,6 +600,7 @@ public function testPerformIgnoresEntriesWithInvalidUrl(): void
595600 'user_id ' => $ user ->id ,
596601 ]);
597602 $ link_url = 'invalid://example.com ' ;
603+ $ this ->mockHttpWithFixture ('https://flus.fr/carnet/ ' , 'responses/flus.fr_carnet_index.html ' );
598604 $ hash = \SpiderBits \Cache::hash ($ feed_url );
599605 $ raw_response = <<<XML
600606 HTTP/2 200 OK
@@ -659,6 +665,7 @@ public function testPerformIgnoresEntriesIfUrlExistsInCollection(): void
659665 'collection_id ' => $ collection ->id ,
660666 'link_id ' => $ link ->id ,
661667 ]);
668+ $ this ->mockHttpWithFixture ('https://flus.fr/carnet/ ' , 'responses/flus.fr_carnet_index.html ' );
662669 $ hash = \SpiderBits \Cache::hash ($ feed_url );
663670 $ raw_response = <<<XML
664671 HTTP/2 200 OK
@@ -712,6 +719,7 @@ public function testPerformIgnoresEntriesIfOverKeepMaximum(): void
712719 FollowedCollectionFactory::create ([
713720 'collection_id ' => $ collection ->id ,
714721 ]);
722+ $ this ->mockHttpWithFixture ('https://flus.fr/carnet/ ' , 'responses/flus.fr_carnet_index.html ' );
715723 $ hash = \SpiderBits \Cache::hash ($ feed_url );
716724 $ raw_response = <<<XML
717725 HTTP/2 200 OK
@@ -779,6 +787,7 @@ public function testPerformIgnoresEntriesIfOlderThanKeepPeriod(): void
779787 FollowedCollectionFactory::create ([
780788 'collection_id ' => $ collection ->id ,
781789 ]);
790+ $ this ->mockHttpWithFixture ('https://flus.fr/carnet/ ' , 'responses/flus.fr_carnet_index.html ' );
782791 $ hash = \SpiderBits \Cache::hash ($ feed_url );
783792 $ raw_response = <<<XML
784793 HTTP/2 200 OK
@@ -833,6 +842,7 @@ public function testPerformTakesEntriesIfRecentEnoughWhenKeepPeriodIsSet(): void
833842 FollowedCollectionFactory::create ([
834843 'collection_id ' => $ collection ->id ,
835844 ]);
845+ $ this ->mockHttpWithFixture ('https://flus.fr/carnet/ ' , 'responses/flus.fr_carnet_index.html ' );
836846 $ hash = \SpiderBits \Cache::hash ($ feed_url );
837847 $ raw_response = <<<XML
838848 HTTP/2 200 OK
@@ -893,6 +903,7 @@ public function testPerformTakesEntriesIfOlderThanKeepPeriodUntilMinimum(): void
893903 FollowedCollectionFactory::create ([
894904 'collection_id ' => $ collection ->id ,
895905 ]);
906+ $ this ->mockHttpWithFixture ('https://flus.fr/carnet/ ' , 'responses/flus.fr_carnet_index.html ' );
896907 $ hash = \SpiderBits \Cache::hash ($ feed_url );
897908 $ raw_response = <<<XML
898909 HTTP/2 200 OK
@@ -963,6 +974,7 @@ public function testPerformForcesEntryIdIfMissing(): void
963974 'collection_id ' => $ collection ->id ,
964975 'user_id ' => $ user ->id ,
965976 ]);
977+ $ this ->mockHttpWithFixture ('https://flus.fr/carnet/ ' , 'responses/flus.fr_carnet_index.html ' );
966978 $ hash = \SpiderBits \Cache::hash ($ feed_url );
967979 $ raw_response = <<<XML
968980 HTTP/2 200 OK
@@ -1027,6 +1039,7 @@ public function testPerformUpdatesUrlIfEntryIdIsIdentical(): void
10271039 'collection_id ' => $ collection ->id ,
10281040 'user_id ' => $ user ->id ,
10291041 ]);
1042+ $ this ->mockHttpWithFixture ('https://flus.fr/carnet/ ' , 'responses/flus.fr_carnet_index.html ' );
10301043 $ hash = \SpiderBits \Cache::hash ($ feed_url );
10311044 $ raw_response = <<<XML
10321045 HTTP/2 200 OK
@@ -1080,6 +1093,7 @@ public function testPerformAbsolutizesLinks(): void
10801093 'collection_id ' => $ collection ->id ,
10811094 'user_id ' => $ user ->id ,
10821095 ]);
1096+ $ this ->mockHttpWithFixture ('https://flus.fr/carnet/ ' , 'responses/flus.fr_carnet_index.html ' );
10831097 $ hash = \SpiderBits \Cache::hash ($ feed_url );
10841098 $ raw_response = <<<XML
10851099 HTTP/2 200 OK
@@ -1189,6 +1203,7 @@ public function testPerformHandlesLongMultiByteFeedTitle(): void
11891203 'collection_id ' => $ collection ->id ,
11901204 'user_id ' => $ user ->id ,
11911205 ]);
1206+ $ this ->mockHttpWithFixture ('https://flus.fr/carnet/ ' , 'responses/flus.fr_carnet_index.html ' );
11921207 $ hash = \SpiderBits \Cache::hash ($ feed_url );
11931208 $ raw_response = <<<XML
11941209 HTTP/2 200 OK
@@ -1230,6 +1245,7 @@ public function testPerformSavesTheLinksUrlReplies(): void
12301245 'collection_id ' => $ collection ->id ,
12311246 'user_id ' => $ user ->id ,
12321247 ]);
1248+ $ this ->mockHttpWithFixture ('https://flus.fr/carnet/ ' , 'responses/flus.fr_carnet_index.html ' );
12331249 $ hash = \SpiderBits \Cache::hash ($ feed_url );
12341250 $ raw_response = <<<XML
12351251 HTTP/2 200 OK
@@ -1360,6 +1376,7 @@ public function testPerformFetchesFeedIfLockedAfterAnHour(): void
13601376 'collection_id ' => $ collection ->id ,
13611377 'user_id ' => $ user ->id ,
13621378 ]);
1379+ $ this ->mockHttpWithFixture ('https://flus.fr/carnet/ ' , 'responses/flus.fr_carnet_index.html ' );
13631380 $ hash = \SpiderBits \Cache::hash ($ feed_url );
13641381 $ raw_response = <<<XML
13651382 HTTP/2 200 OK
@@ -1404,7 +1421,7 @@ public function testPerformHandlesWrongEncoding(): void
14041421 <rss version="2.0">
14051422 <channel>
14061423 <title>My feed with an àccent</title>
1407- <link>https://example.com </link>
1424+ <link>https://flus.fr/carnet </link>
14081425 </channel>
14091426 </rss>
14101427 XML ;
@@ -1425,6 +1442,7 @@ public function testPerformHandlesWrongEncoding(): void
14251442 'collection_id ' => $ collection ->id ,
14261443 'user_id ' => $ user ->id ,
14271444 ]);
1445+ $ this ->mockHttpWithFixture ('https://flus.fr/carnet/ ' , 'responses/flus.fr_carnet_index.html ' );
14281446 $ hash = \SpiderBits \Cache::hash ($ feed_url );
14291447 $ raw_response = <<<XML
14301448 HTTP/2 200 OK
0 commit comments