|
@@ 33-41 (lines=9) @@
|
| 30 |
|
$this->assertEquals(404, $result->getStatusCode()); |
| 31 |
|
} |
| 32 |
|
|
| 33 |
|
public function testPartialValidKeyToken() |
| 34 |
|
{ |
| 35 |
|
$token = 'e6b27462211e1711'; |
| 36 |
|
$key = singleton(PartialFormSubmission::class)->generateKey($token); |
| 37 |
|
|
| 38 |
|
$result = $this->get("partial/{$key}/{$token}"); |
| 39 |
|
$this->assertEquals(200, $result->getStatusCode()); |
| 40 |
|
$this->assertContains('Field 1', $result->getBody()); |
| 41 |
|
} |
| 42 |
|
|
| 43 |
|
public function testPartialInvalidToken() |
| 44 |
|
{ |
|
@@ 43-50 (lines=8) @@
|
| 40 |
|
$this->assertContains('Field 1', $result->getBody()); |
| 41 |
|
} |
| 42 |
|
|
| 43 |
|
public function testPartialInvalidToken() |
| 44 |
|
{ |
| 45 |
|
$token = 'abcdef'; |
| 46 |
|
$key = singleton(PartialFormSubmission::class)->generateKey($token); |
| 47 |
|
|
| 48 |
|
$result = $this->get("partial/{$key}/{$token}"); |
| 49 |
|
$this->assertEquals(404, $result->getStatusCode()); |
| 50 |
|
} |
| 51 |
|
|
| 52 |
|
public function testPartialInvalidKey() |
| 53 |
|
{ |