コード例 #1
0
 /**
  * Tests the update function in the MetricController
  * @depends testStore
  * @param void
  * @return void
  */
 public function testDelete()
 {
     $this->be(User::first());
     $this->runStore($this->input);
     $metric = new MetricController();
     $metric->delete(1);
     $metricDeleted = Metric::withTrashed()->find(1);
     $this->assertNotNull($metricDeleted->deleted_at);
 }