/** * @test */ public function it_fetches_all_the_records() { factory(Post::class, 2)->create(); $posts = $this->posts->getAll(); $this->assertEquals(2, $posts->count()); }