4d: Add import and enable the module

This commit is contained in:
Oliver Davies 2020-11-14 09:05:59 +00:00
parent a6a2ad22e4
commit f194015f30

View file

@ -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);