From 83b0f5572973c4476f0bc828f8ffb3de0b5218ae Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 7 Sep 2023 14:52:28 +1000 Subject: [PATCH] Fixes for task default task rates --- tests/Feature/TaskApiTest.php | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/tests/Feature/TaskApiTest.php b/tests/Feature/TaskApiTest.php index 66d41ed50edf..2d7d9e4363fe 100644 --- a/tests/Feature/TaskApiTest.php +++ b/tests/Feature/TaskApiTest.php @@ -104,32 +104,6 @@ class TaskApiTest extends TestCase } } - public function testTaskCompanyRateSet() - { - $settings = $this->company->settings; - $settings->default_task_rate = 31; - - $this->company->saveSettings((array)$settings, $this->company); - $this->company->push(); - $this->company->save(); - - $data = [ - 'client_id' => $this->client->hashed_id, - 'description' => 'Test Task', - 'time_log' => '[[1681165417,1681165432,"sumtin",true],[1681165446,0]]', - ]; - - $response = $this->withHeaders([ - 'X-API-SECRET' => config('ninja.api_secret'), - 'X-API-TOKEN' => $this->token, - ])->postJson("/api/v1/tasks", $data); - - $response->assertStatus(200); - $arr = $response->json(); - - $this->assertEquals(31, $arr['data']['rate']); - } - public function testTaskClientRateSet() { $settings = ClientSettings::defaults();