test set elements
This commit is contained in:
parent
104909bcf5
commit
db35a97910
6 changed files with 409 additions and 0 deletions
17
backend/tests/Unit/Set/SetTest.php
Normal file
17
backend/tests/Unit/Set/SetTest.php
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
namespace Tests\Unit\Set;
|
||||
|
||||
use App\Set\Set as DomainSet;
|
||||
use Tests\TestCase;
|
||||
|
||||
class SetTest extends TestCase
|
||||
{
|
||||
public function testCreatesSetWithName(): void
|
||||
{
|
||||
$set = new DomainSet(1, 'Daily learning');
|
||||
|
||||
$this->assertSame(1, $set->getId());
|
||||
$this->assertSame('Daily learning', $set->getName());
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue