mirror of
https://github.com/Karaka-Management/oms-Dashboard.git
synced 2026-01-11 09:28:40 +00:00
Automated formatting changes
This commit is contained in:
parent
3da5621293
commit
8eaaf43c8a
|
|
@ -14,6 +14,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Modules\Dashboard\Controller;
|
||||
|
||||
use Modules\Admin\Models\NullAccount;
|
||||
use Modules\Dashboard\Models\DashboardBoard;
|
||||
use Modules\Dashboard\Models\DashboardBoardMapper;
|
||||
use Modules\Dashboard\Models\DashboardBoardStatus;
|
||||
|
|
@ -24,7 +25,6 @@ use phpOMS\Message\NotificationLevel;
|
|||
use phpOMS\Message\RequestAbstract;
|
||||
use phpOMS\Message\ResponseAbstract;
|
||||
use phpOMS\Model\Message\FormValidation;
|
||||
use Modules\Admin\Models\NullAccount;
|
||||
|
||||
/**
|
||||
* Api controller for the dashboard module.
|
||||
|
|
|
|||
|
|
@ -15,10 +15,10 @@ declare(strict_types=1);
|
|||
|
||||
namespace Modules\Dashboard\tests\Models;
|
||||
|
||||
use Modules\Admin\Models\NullAccount;
|
||||
use Modules\Dashboard\Models\DashboardBoard;
|
||||
use Modules\Dashboard\Models\DashboardBoardStatus;
|
||||
use Modules\Dashboard\Models\DashboardComponent;
|
||||
use Modules\Admin\Models\NullAccount;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
|
|
@ -30,7 +30,7 @@ final class DashboardBoardTest extends \PHPUnit\Framework\TestCase
|
|||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function setUp(): void
|
||||
protected function setUp() : void
|
||||
{
|
||||
$this->board = new DashboardBoard();
|
||||
}
|
||||
|
|
@ -39,7 +39,7 @@ final class DashboardBoardTest extends \PHPUnit\Framework\TestCase
|
|||
* @covers Modules\Dashboard\Models\DashboardBoard
|
||||
* @group module
|
||||
*/
|
||||
public function testDefault(): void
|
||||
public function testDefault() : void
|
||||
{
|
||||
self::assertEquals(0, $this->board->getId());
|
||||
self::assertEquals('', $this->board->title);
|
||||
|
|
@ -53,7 +53,7 @@ final class DashboardBoardTest extends \PHPUnit\Framework\TestCase
|
|||
* @covers Modules\Dashboard\Models\DashboardBoard
|
||||
* @group module
|
||||
*/
|
||||
public function testStatusInputOutput(): void
|
||||
public function testStatusInputOutput() : void
|
||||
{
|
||||
$this->board->setStatus(DashboardBoardStatus::INACTIVE);
|
||||
self::assertEquals(DashboardBoardStatus::INACTIVE, $this->board->getStatus());
|
||||
|
|
@ -63,7 +63,7 @@ final class DashboardBoardTest extends \PHPUnit\Framework\TestCase
|
|||
* @covers Modules\Dashboard\Models\DashboardBoard
|
||||
* @group module
|
||||
*/
|
||||
public function testInvalidStatus(): void
|
||||
public function testInvalidStatus() : void
|
||||
{
|
||||
$this->expectException(\phpOMS\Stdlib\Base\Exception\InvalidEnumValue::class);
|
||||
$this->board->setStatus(999);
|
||||
|
|
@ -73,7 +73,7 @@ final class DashboardBoardTest extends \PHPUnit\Framework\TestCase
|
|||
* @covers Modules\Dashboard\Models\DashboardBoard
|
||||
* @group module
|
||||
*/
|
||||
public function testComponentInputOutput(): void
|
||||
public function testComponentInputOutput() : void
|
||||
{
|
||||
$id = $this->board->addComponent($temp = new DashboardComponent());
|
||||
self::assertEquals($temp, $this->board->getComponent($id));
|
||||
|
|
@ -86,7 +86,7 @@ final class DashboardBoardTest extends \PHPUnit\Framework\TestCase
|
|||
* @covers Modules\Dashboard\Models\DashboardBoard
|
||||
* @group module
|
||||
*/
|
||||
public function testSerialize(): void
|
||||
public function testSerialize() : void
|
||||
{
|
||||
$this->board->title = 'Title';
|
||||
$this->board->account = new NullAccount(2);
|
||||
|
|
@ -95,7 +95,7 @@ final class DashboardBoardTest extends \PHPUnit\Framework\TestCase
|
|||
self::assertEquals(
|
||||
[
|
||||
'id' => 0,
|
||||
'account' => $this->board->account,
|
||||
'account' => $this->board->account,
|
||||
'title' => 'Title',
|
||||
'status' => DashboardBoardStatus::INACTIVE,
|
||||
'components' => [],
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user