Skip to content

Commit

Permalink
refactor: logic
Browse files Browse the repository at this point in the history
  • Loading branch information
yogyrton committed Dec 24, 2024
1 parent aedd852 commit d336495
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
10 changes: 9 additions & 1 deletion tests/MailsMockTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,21 @@ public function testMailWithGlobalExportMode()
putenv('FAIL_EXPORT_JSON=false');
$this->globalExportMode = true;

$fixturePath = $this->getFixturePath('test_mail_with_global_export.html');

if (file_exists($fixturePath)) {
unlink($fixturePath);
}

Mail::to('[email protected]')->queue(new TestMail(['name' => 'John Smith']));

$this->assertMailEquals(TestMail::class, [
$this->mockedMail('[email protected]', 'test_mail_with_global_export.html', 'Test Subject'),
]);

$this->assertFileExists($this->getFixturePath('test_mail_with_global_export.html'));
$this->assertEqualsFixture('test_mail_with_global_export.html', 'test_mail_with_global_export_example');

unlink($fixturePath);
}

public function testMailWithIncorrectSubject()
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"<div>John Smith<\/div>"

0 comments on commit d336495

Please sign in to comment.