mirror of
https://github.com/Karaka-Management/oms-Tasks.git
synced 2026-02-14 13:48:40 +00:00
fix tests
This commit is contained in:
parent
948f809278
commit
0d5912a48c
|
|
@ -91,7 +91,7 @@ class TaskElementTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
public function testInvalidStatus() : void
|
public function testInvalidStatus() : void
|
||||||
{
|
{
|
||||||
self::expectException(\phpOMS\Stdlib\Base\Exception\InvalidEnumValue::class);
|
$this->expectException(\phpOMS\Stdlib\Base\Exception\InvalidEnumValue::class);
|
||||||
|
|
||||||
$task = new TaskElement();
|
$task = new TaskElement();
|
||||||
$task->setStatus(9999);
|
$task->setStatus(9999);
|
||||||
|
|
@ -99,7 +99,7 @@ class TaskElementTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
public function testInvalidPriority() : void
|
public function testInvalidPriority() : void
|
||||||
{
|
{
|
||||||
self::expectException(\phpOMS\Stdlib\Base\Exception\InvalidEnumValue::class);
|
$this->expectException(\phpOMS\Stdlib\Base\Exception\InvalidEnumValue::class);
|
||||||
|
|
||||||
$task = new TaskElement();
|
$task = new TaskElement();
|
||||||
$task->setPriority(9999);
|
$task->setPriority(9999);
|
||||||
|
|
|
||||||
|
|
@ -163,7 +163,7 @@ class TaskTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
public function testInvalidStatus() : void
|
public function testInvalidStatus() : void
|
||||||
{
|
{
|
||||||
self::expectException(\phpOMS\Stdlib\Base\Exception\InvalidEnumValue::class);
|
$this->expectException(\phpOMS\Stdlib\Base\Exception\InvalidEnumValue::class);
|
||||||
|
|
||||||
$task = new Task();
|
$task = new Task();
|
||||||
$task->setStatus(9999);
|
$task->setStatus(9999);
|
||||||
|
|
@ -171,7 +171,7 @@ class TaskTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
public function testInvalidPriority() : void
|
public function testInvalidPriority() : void
|
||||||
{
|
{
|
||||||
self::expectException(\phpOMS\Stdlib\Base\Exception\InvalidEnumValue::class);
|
$this->expectException(\phpOMS\Stdlib\Base\Exception\InvalidEnumValue::class);
|
||||||
|
|
||||||
$task = new Task();
|
$task = new Task();
|
||||||
$task->setPriority(9999);
|
$task->setPriority(9999);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user