Пример #1
0
 /**
  * Tests the update function in the TestTypeController
  * @param void
  * @return void
  */
 public function testDelete()
 {
     $this->withoutMiddleware();
     $this->call('POST', '/testtype', $this->testTypeData);
     $testTypestored = TestType::orderBy('id', 'desc')->first();
     $testType = new TestTypeController();
     $testType->delete($testTypestored->id);
     $testTypeSaved = TestType::withTrashed()->find($testTypestored->id);
     $this->assertNotNull($testTypeSaved->deleted_at);
 }