Skip to content

Commit

Permalink
test: Add tests for identity resolver custom creators
Browse files Browse the repository at this point in the history
  • Loading branch information
ollieread committed Dec 16, 2024
1 parent faf71b8 commit a0fca4d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/Unit/Managers/IdentityResolverManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,16 @@ public function allowsCustomCreators(): void

$manager = sprout()->resolvers();

$this->markTestSkipped();
$this->assertTrue($manager->hasDriver('hello-there'));
$this->assertFalse($manager->hasResolved('path'));
$this->assertFalse($manager->hasResolved('subdomain'));

$resolver = $manager->get('path');

$this->assertInstanceOf(SubdomainIdentityResolver::class, $resolver);
$this->assertSame('hello-there', $resolver->getName());
$this->assertSame('somedomain.local', $resolver->getDomain());
$this->assertTrue($manager->hasResolved('path'));
$this->assertFalse($manager->hasResolved('subdomain'));
}
}

0 comments on commit a0fca4d

Please sign in to comment.