4b: Test it returns blog posts
This commit is contained in:
parent
9484d924a1
commit
48ab1c9209
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
namespace Drupal\Tests\my_module\Kernel;
|
||||
|
||||
use Drupal\KernelTests\Core\Entity\EntityKernelTestBase;
|
||||
|
||||
class ArticleRepositoryTest extends EntityKernelTestBase {
|
||||
|
||||
/** @test */
|
||||
public function it_returns_blog_posts() {
|
||||
$this->assertCount(1, $articles);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue