public function testIf_all_tagged_facts_are_selected_in_a_session()
 {
     $user = $this->getTestUser();
     $this->mockFacts($user, 20);
     $this->tagMockFacts($user);
     $tag_ids = [1, 2, 3];
     $factSelector = new \App\GladysApp\Domain\FactSelector();
     foreach ($tag_ids as $tag_id) {
         $taggedFacts = TaggedFact::where('tag_id', '=', $tag_id)->count();
         $i = $taggedFacts;
         $fact_ids = [];
         while ($i--) {
             $fact = $factSelector->select_unique_tagged_fact($user->id, $tag_id, $fact_ids);
             $fact_ids[] = intval($fact['id']);
         }
         $this->assertEquals($taggedFacts, count(array_unique($fact_ids)));
     }
 }