mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 06:24:30 -04:00
attempt to fix failing test
This commit is contained in:
parent
5b9af52ba1
commit
f9465b6288
@ -48,17 +48,18 @@ class TaskStatusApiTest extends TestCase
|
|||||||
{
|
{
|
||||||
TaskStatus::factory()->count(5)->create([
|
TaskStatus::factory()->count(5)->create([
|
||||||
'company_id' => $this->company->id,
|
'company_id' => $this->company->id,
|
||||||
'user_id' => $this->user->id
|
'user_id' => $this->user->id,
|
||||||
|
'status_order' => 99999,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
||||||
$t = TaskStatus::where('company_id', '=', $this->company->id)->orderBy('id', 'desc');
|
$t = TaskStatus::where('company_id', '=', $this->company->id)->orderBy('id', 'desc');
|
||||||
|
|
||||||
$this->assertEquals(10, $t->count());
|
$this->assertEquals(10, $t->count());
|
||||||
$task_status = $t->first();
|
$task_status = $t->first();
|
||||||
|
|
||||||
$id = $task_status->id;
|
$id = $task_status->id;
|
||||||
|
|
||||||
nlog("setting {$id} to index 1");
|
nlog("setting {$id} to index 1");
|
||||||
|
|
||||||
$data = [
|
$data = [
|
||||||
@ -73,7 +74,7 @@ class TaskStatusApiTest extends TestCase
|
|||||||
$t = TaskStatus::where('company_id', '=', $this->company->id)->orderBy('status_order', 'asc')->first();
|
$t = TaskStatus::where('company_id', '=', $this->company->id)->orderBy('status_order', 'asc')->first();
|
||||||
|
|
||||||
$this->assertEquals($id, $t->id);
|
$this->assertEquals($id, $t->id);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testTaskStatusGetFilter()
|
public function testTaskStatusGetFilter()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user