assertInstanceOf(GlobalScope::class, ScopeParser::parse('')); }); test('parse type scope', function (): void { $this->assertInstanceOf(TypeScope::class, ScopeParser::parse(fake()->word())); }); test('parse relation scope', function (): void { $relation = collect(fake()->words())->join('.'); $this->assertInstanceOf(RelationScope::class, ScopeParser::parse($relation)); });