mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-02-17 15:09:35 +00:00
Ran rector and made tests final
This commit is contained in:
parent
43d72faf48
commit
b21d294cf8
162 changed files with 407 additions and 393 deletions
|
|
@ -22,6 +22,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace App\Tests\Repository;
|
||||
|
||||
use App\Entity\Base\AbstractStructuralDBElement;
|
||||
use App\Entity\Attachments\AttachmentType;
|
||||
use App\Helpers\Trees\TreeViewNode;
|
||||
use App\Repository\StructuralDBElementRepository;
|
||||
|
|
@ -30,7 +31,7 @@ use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
|||
/**
|
||||
* @Group DB
|
||||
*/
|
||||
class StructuralDBElementRepositoryTest extends WebTestCase
|
||||
final class StructuralDBElementRepositoryTest extends WebTestCase
|
||||
{
|
||||
/**
|
||||
* @var StructuralDBElementRepository
|
||||
|
|
@ -108,6 +109,7 @@ class StructuralDBElementRepositoryTest extends WebTestCase
|
|||
{
|
||||
//List all nodes that are children to Node 1
|
||||
$node1 = $this->repo->find(1);
|
||||
$this->assertInstanceOf(AbstractStructuralDBElement::class, $node1);
|
||||
$nodes = $this->repo->getFlatList($node1);
|
||||
|
||||
$this->assertCount(3, $nodes);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue