4d: Add import and enable the module
This commit is contained in:
parent
a6a2ad22e4
commit
f194015f30
|
@ -3,9 +3,12 @@
|
|||
namespace Drupal\Tests\my_module\Kernel;
|
||||
|
||||
use Drupal\KernelTests\Core\Entity\EntityKernelTestBase;
|
||||
use Drupal\my_module\Repository\ArticleRepository;
|
||||
|
||||
class ArticleRepositoryTest extends EntityKernelTestBase {
|
||||
|
||||
public static $modules = ['my_module'];
|
||||
|
||||
/** @test */
|
||||
public function it_returns_blog_posts() {
|
||||
$repository = $this->container->get(ArticleRepository::class);
|
||||
|
|
Loading…
Reference in a new issue