Add PostNodeRepositoryUnitTest
> ArgumentCountError: Too few arguments to function Drupal\example\Repository\PostNodeRepository::__construct(), 0 passed in /home/opdavies/Code/github.com/opdavies/atdc /web/modules/custom/example/tests/src/Unit/PostNodeRepositoryUnitTest.php on line 15 and exactly 1 expected
This commit is contained in:
parent
01289d8711
commit
c54b3efa93
|
@ -0,0 +1,18 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Drupal\Tests\example\Unit;
|
||||||
|
|
||||||
|
use Drupal\example\Repository\PostNodeRepository;
|
||||||
|
use Drupal\Tests\UnitTestCase;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group lessons
|
||||||
|
*/
|
||||||
|
final class PostNodeRepositoryUnitTest extends UnitTestCase {
|
||||||
|
|
||||||
|
/** @test */
|
||||||
|
public function it_returns_posts(): void {
|
||||||
|
$repository = new PostNodeRepository();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue