Inject a new instance of EntityTypeManager
> ArgumentCountError: Too few arguments to function Drupal\Core\Entity\EntityTypeManager::__construct(), 0 passed in /home/opdavies/Code/github.com/opdavies/atdc/web/modules/custom/example/tests/src/Unit/PostNodeRepositoryUnitTest.php on line 17 and exactly 6 expected
This commit is contained in:
parent
c54b3efa93
commit
bad5ba5905
|
@ -12,7 +12,9 @@ final class PostNodeRepositoryUnitTest extends UnitTestCase {
|
||||||
|
|
||||||
/** @test */
|
/** @test */
|
||||||
public function it_returns_posts(): void {
|
public function it_returns_posts(): void {
|
||||||
$repository = new PostNodeRepository();
|
$repository = new PostNodeRepository(
|
||||||
|
new EntityTypeManager(),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue