mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 16:54:36 -04:00
Test adding a third parameter to the task timelog
This commit is contained in:
parent
2746eaef06
commit
025191fc2c
@ -58,7 +58,7 @@ class TaskApiTest extends TestCase
|
|||||||
public function testTaskLockingGate()
|
public function testTaskLockingGate()
|
||||||
{
|
{
|
||||||
$data = [
|
$data = [
|
||||||
'timelog' => [[1,2],[3,4]],
|
'timelog' => [[1,2,'a'],[3,4,'d']],
|
||||||
];
|
];
|
||||||
|
|
||||||
$response = $this->withHeaders([
|
$response = $this->withHeaders([
|
||||||
@ -194,7 +194,7 @@ class TaskApiTest extends TestCase
|
|||||||
public function testTimeLogValidation3()
|
public function testTimeLogValidation3()
|
||||||
{
|
{
|
||||||
$data = [
|
$data = [
|
||||||
'timelog' => [["a","b"],["c","d"]],
|
'timelog' => [["a","b",'d'],["c","d",'d']],
|
||||||
];
|
];
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@ -213,7 +213,7 @@ class TaskApiTest extends TestCase
|
|||||||
public function testTimeLogValidation4()
|
public function testTimeLogValidation4()
|
||||||
{
|
{
|
||||||
$data = [
|
$data = [
|
||||||
'timelog' => [[1,2],[3,0]],
|
'timelog' => [[1,2,'d'],[3,0,'d']],
|
||||||
];
|
];
|
||||||
|
|
||||||
$response = $this->withHeaders([
|
$response = $this->withHeaders([
|
||||||
@ -232,8 +232,8 @@ class TaskApiTest extends TestCase
|
|||||||
public function testStartTask()
|
public function testStartTask()
|
||||||
{
|
{
|
||||||
$log = [
|
$log = [
|
||||||
[2, 1],
|
[2, 1,'d'],
|
||||||
[10, 20],
|
[10, 20,'d'],
|
||||||
];
|
];
|
||||||
|
|
||||||
$last = end($log);
|
$last = end($log);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user