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