/**
  * Test that a employee can be edited via form.
  */
 public function testEditForm()
 {
     $admin = $this->createSuperuser();
     $this->be($admin);
     $company = $this->createCompany();
     $profile = $this->createCompanyProfile($company);
     $this->call('GET', route('company.profile.edit', ['company' => $company->id, 'profile' => $profile->id]));
     $this->assertResponseOk();
     $response = $this->call('PUT', route('company.profile.update', ['company' => $company->id, 'profile' => $profile->id]), ['title' => 'foundation2', 'value' => '2009', '_token' => Session::token()]);
     $this->assertRedirectedToRoute('company.show', ['company' => $company->id]);
     $profile = CompanyProfile::find($profile->id);
     $this->assertNotNull($profile);
     $this->assertEquals('foundation2', $profile->title);
 }