roleName()); self::assertEquals([], $definition->meta()); } /** @test */ public function forDomainCreatesRoleDefinitionAsExpected(): void { $domain = Domain::withAuthority('foo.com')->setId('123'); $definition = RoleDefinition::forDomain($domain); self::assertEquals(Role::DOMAIN_SPECIFIC, $definition->roleName()); self::assertEquals(['domain_id' => '123', 'authority' => 'foo.com'], $definition->meta()); } }