mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-03 17:55:03 +02:00
Fixed code style.
This commit is contained in:
parent
1aed1d1d26
commit
9a7223a301
142 changed files with 534 additions and 716 deletions
|
@ -28,13 +28,11 @@ use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
|||
|
||||
/**
|
||||
* @Group DB
|
||||
* @package App\Tests\Services\Trees
|
||||
*/
|
||||
class NodesListBuilderTest extends WebTestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* @var NodesListBuilder $service
|
||||
* @var NodesListBuilder
|
||||
*/
|
||||
protected $service;
|
||||
protected $em;
|
||||
|
@ -47,9 +45,9 @@ class NodesListBuilderTest extends WebTestCase
|
|||
}
|
||||
|
||||
/**
|
||||
* Test $repo->toNodesList() for null as parameter
|
||||
* Test $repo->toNodesList() for null as parameter.
|
||||
*/
|
||||
public function testTypeToNodesListtRoot() : void
|
||||
public function testTypeToNodesListtRoot(): void
|
||||
{
|
||||
//List all root nodes and their children
|
||||
$nodes = $this->service->typeToNodesList(AttachmentType::class);
|
||||
|
@ -65,7 +63,7 @@ class NodesListBuilderTest extends WebTestCase
|
|||
$this->assertEquals('Node 3', $nodes[6]->getName());
|
||||
}
|
||||
|
||||
public function testTypeToNodesListElement() : void
|
||||
public function testTypeToNodesListElement(): void
|
||||
{
|
||||
//List all nodes that are children to Node 1
|
||||
$node1 = $this->em->find(AttachmentType::class, 1);
|
||||
|
|
|
@ -24,10 +24,8 @@ namespace App\Tests\Services\Trees;
|
|||
use App\Entity\Attachments\AttachmentType;
|
||||
use App\Entity\Parts\Category;
|
||||
use App\Helpers\Trees\TreeViewNode;
|
||||
use App\Services\AmountFormatter;
|
||||
use App\Services\Trees\TreeViewGenerator;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
|
||||
/**
|
||||
|
@ -41,7 +39,7 @@ class TreeViewGeneratorTest extends WebTestCase
|
|||
protected $service;
|
||||
protected $em;
|
||||
|
||||
public function setUp() : void
|
||||
public function setUp(): void
|
||||
{
|
||||
parent::setUp(); // TODO: Change the autogenerated stub
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue