mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
INA-5 | Update Tests
This commit is contained in:
parent
b3e58d93dc
commit
e137b1ac0b
@ -75,7 +75,7 @@ class SchedulerTest extends TestCase
|
|||||||
])->put('/api/v1/task_scheduler/' . $this->encodePrimaryKey($scheduler->id), $updateData);
|
])->put('/api/v1/task_scheduler/' . $this->encodePrimaryKey($scheduler->id), $updateData);
|
||||||
|
|
||||||
$responseData = $response->json();
|
$responseData = $response->json();
|
||||||
$this->assertEquals(['successfully_updated_scheduler'], $responseData);
|
$this->assertEquals($updateData['start_from'], $responseData['data']['start_from']);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testSchedulerCanBeSeen()
|
public function testSchedulerCanBeSeen()
|
||||||
@ -129,7 +129,8 @@ class SchedulerTest extends TestCase
|
|||||||
])->put('/api/v1/task_scheduler/' . $this->encodePrimaryKey($scheduler->id) . '/update_job', $updateData);
|
])->put('/api/v1/task_scheduler/' . $this->encodePrimaryKey($scheduler->id) . '/update_job', $updateData);
|
||||||
|
|
||||||
$updatedSchedulerJob = Scheduler::first()->job->action_name;
|
$updatedSchedulerJob = Scheduler::first()->job->action_name;
|
||||||
$this->assertSame('create_credit_report', $updatedSchedulerJob);
|
$arr = $response->json();
|
||||||
|
$this->assertSame('create_credit_report', $arr['data']['job']['action_name']);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testSchedulerCanBeCreated()
|
public function testSchedulerCanBeCreated()
|
||||||
|
Loading…
Reference in New Issue
Block a user