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