Add an initial test for counting past talks
This commit is contained in:
parent
8a05b19fd4
commit
26a632608b
4 changed files with 2260 additions and 2 deletions
15
tests/TalkExtensionTest.php
Normal file
15
tests/TalkExtensionTest.php
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
namespace App\Tests;
|
||||
|
||||
use App\TwigExtension\TalkExtension;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
final class TalkExtensionTest extends TestCase
|
||||
{
|
||||
/** @test */
|
||||
public function it_returns_zero_if_there_are_no_talks(): void
|
||||
{
|
||||
$this->assertSame(0, (new TalkExtension())->getPastTalksCount([]));
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue