use(WithFaker::class); test('global scope is within scope', function (): void { $scope = new GlobalScope(); $otherScope = new GlobalScope(); expect($scope->isWithinScope($otherScope))->toBeTrue(); }); test('type scope is within scope', function (): void { $scope = new GlobalScope(); $otherScope = new TypeScope(fake()->word()); expect($scope->isWithinScope($otherScope))->toBeTrue(); }); test('relation scope is within scope', function (): void { $scope = new GlobalScope(); $otherScope = new RelationScope(fake()->word()); expect($scope->isWithinScope($otherScope))->toBeTrue(); });