Skip to content

Commit

Permalink
chore: Add docblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
kjohnson committed Nov 18, 2024
1 parent 2aa34ce commit 3ef7b21
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/Unit/Framework/Models/Factories/TestModelFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,9 @@ public function create(array $attributes = [])
$this->assertEquals(789, $object->nestedId);
}

/**
* @unreleased
*/
public function testDoesNotResolveInvokableClasses()
{
$factory = new class(MockModelWithInvokableProperty::class) extends ModelFactory {
Expand Down Expand Up @@ -346,11 +349,19 @@ class MockModelWithDependency extends MockModel
];
}

/**
* @unreleased
*/
abstract class MockInvokableClass
{
abstract public function __invoke();
}

/**
* @unreleased
*
* @property MockInvokableClass $invokable
*/
class MockModelWithInvokableProperty extends MockModel
{
protected $properties = [
Expand Down

0 comments on commit 3ef7b21

Please sign in to comment.