Example #1
0
 public function testAcceptOnlyPostVerb()
 {
     $test_form = Form::first();
     $response1 = $this->call('GET', '/forms/' . $test_form->slug);
     $this->assertEquals(405, $response1->status());
     $response2 = $this->call('POST', '/forms/' . $test_form->slug);
     $this->assertNotEquals(405, $response2->status());
 }