/** * Test get query scope of byCategoryName method * * @return void */ public function testScopeByCategoryName() { $scope = new Scope(); $this->assertInstanceOf(Collection::class, $scope->byCategoryName(1)->get()); }