[Capability] Remove CompletionProvider's dead providerClass argument (#499)
* [Capability] Remove CompletionProvider's dead providerClass argument It always threw on construction, so it never worked in any release. `provider:` takes the same class-string and is now the first positional argument. * Reword Changelog
This commit is contained in:
parent
749c0353ef
commit
f39625b257
1 changed files with 197 additions and 10 deletions
|
|
@ -26,6 +26,15 @@ class CompletionProviderTest extends TestCase
|
|||
$this->assertNull($attribute->enum);
|
||||
}
|
||||
|
||||
public function testCanBeConstructedWithAPositionalProviderClass(): void
|
||||
{
|
||||
$attribute = new CompletionProvider(CompletionProviderFixture::class);
|
||||
|
||||
$this->assertSame(CompletionProviderFixture::class, $attribute->provider);
|
||||
$this->assertNull($attribute->values);
|
||||
$this->assertNull($attribute->enum);
|
||||
}
|
||||
|
||||
public function testCanBeConstructedWithProviderInstance(): void
|
||||
{
|
||||
$instance = new CompletionProviderFixture();
|
||||
|
|
|
|||
Loading…
Reference in a new issue