assertTrue($scope->isWithinScope($otherScope)); }); test('type scope is within scope', function (): void { $scope = new GlobalScope(); $otherScope = new TypeScope(fake()->word()); $this->assertTrue($scope->isWithinScope($otherScope)); }); test('relation scope is within scope', function (): void { $scope = new GlobalScope(); $otherScope = new RelationScope(fake()->word()); $this->assertTrue($scope->isWithinScope($otherScope)); });