| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 47 | public function testRender(): void |
||
| 48 | { |
||
| 49 | $email = $this->app->send(new Message('email', ['[email protected]'], ['name' => 'Antony'])); |
||
| 50 | |||
| 51 | $this->assertSame('Demo Email', $email->getSubject()); |
||
| 52 | |||
| 53 | $body = $email->getBody()->toString(); |
||
| 54 | $this->assertStringContainsString('bootstrap.txt', $body); |
||
| 55 | $this->assertStringContainsString('<p>Hello, Antony!</p>', $body); |
||
| 56 | } |
||
| 58 |
If you suppress an error, we recommend checking for the error condition explicitly: