show current rate api

This commit is contained in:
Nazri Hamzah
2018-06-30 16:13:26 +08:00
parent 79cad74ee0
commit 94b664bb45
4 changed files with 24 additions and 14 deletions
+9 -2
View File
@@ -43,8 +43,8 @@ class RateTest extends TestCase
'x2_ba' => '1.2'
])
->assertStatus(201);
}
}
public function testUpdate(){
$response =
$this->actingAs($this->user)
@@ -57,5 +57,12 @@ class RateTest extends TestCase
'x2_ba' => '1.2'
])
->assertStatus(200);
}
public function testShowRate(){
$response = $this->json('GET', '/api/rate');
$response
->assertStatus(200);
}
}