File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -482,6 +482,8 @@ public function save()
482482 {
483483 $ isNew = ! Facades \Collection::handleExists ($ this ->handle );
484484
485+ Blink::forget ("collection- {$ this ->id ()}-structure " );
486+
485487 $ withEvents = $ this ->withEvents ;
486488 $ this ->withEvents = true ;
487489
Original file line number Diff line number Diff line change @@ -501,6 +501,7 @@ public function it_saves_the_collection_through_the_api()
501501
502502 Facades \Collection::shouldReceive ('save ' )->with ($ collection )->once ();
503503 Facades \Collection::shouldReceive ('handleExists ' )->with ('test ' )->once ();
504+ Facades \Blink::shouldReceive ('forget ' )->with ('collection-test-structure ' )->once ();
504505 Facades \Blink::shouldReceive ('forget ' )->with ('collection-handles ' )->once ();
505506 Facades \Blink::shouldReceive ('forget ' )->with ('mounted-collections ' )->once ();
506507 Facades \Blink::shouldReceive ('flushStartingWith ' )->with ('collection-test ' )->once ();
You can’t perform that action at this time.
0 commit comments