Scaffold tests
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
namespace Tests\Feature\Notifications\Email;
|
||||
|
||||
use App\Events\CheckoutableCheckedOut;
|
||||
use App\Mail\CheckinAssetMail;
|
||||
use App\Mail\CheckoutAssetMail;
|
||||
use App\Models\Asset;
|
||||
use App\Models\AssetModel;
|
||||
@@ -16,14 +15,52 @@ use Tests\TestCase;
|
||||
#[Group('notifications')]
|
||||
class EmailNotificationsUponCheckoutTest extends TestCase
|
||||
{
|
||||
private Asset $asset;
|
||||
private AssetModel $assetModel;
|
||||
private Category $category;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
Mail::fake();
|
||||
|
||||
$this->category = Category::factory()->create([
|
||||
'checkin_email' => false,
|
||||
'eula_text' => null,
|
||||
'require_acceptance' => false,
|
||||
'use_default_eula' => false,
|
||||
]);
|
||||
|
||||
$this->assetModel = AssetModel::factory()->for($this->category)->create();
|
||||
$this->asset = Asset::factory()->for($this->assetModel, 'model')->create();
|
||||
}
|
||||
|
||||
public function testAdminCCEmailStillSentWhenCategoryEmailIsNotSetToSendEmailToUser()
|
||||
public function test_email_sent_to_user_when_category_requires_acceptance()
|
||||
{
|
||||
$this->markTestIncomplete();
|
||||
|
||||
// require_acceptance = true
|
||||
}
|
||||
|
||||
public function test_email_sent_to_user_when_category_using_default_eula()
|
||||
{
|
||||
$this->markTestIncomplete();
|
||||
}
|
||||
|
||||
public function test_email_sent_to_user_when_category_using_local_eula()
|
||||
{
|
||||
$this->markTestIncomplete();
|
||||
}
|
||||
|
||||
public function test_email_sent_to_user_when_category_set_to_explicitly_send_email()
|
||||
{
|
||||
$this->markTestIncomplete();
|
||||
|
||||
// checkin_email = true
|
||||
}
|
||||
|
||||
public function test_admin_cc_email_still_sent_when_category_email_is_not_set_to_send_email_to_user()
|
||||
{
|
||||
$this->settings->enableAdminCC('cc@example.com');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user