markTestSkipped('Skip test not needed in this environment'); $this->makeTestData(); $this->email_object = new EmailObject(); $this->email_object->to = [new Address("testing@gmail.com", "Cool Name")]; $this->email_object->attachments = []; $this->email_object->settings = $this->client->getMergedSettings(); $this->email_object->company = $this->client->company; $this->email_object->client = $this->client; $this->email_object->email_template_subject = 'email_subject_statement'; $this->email_object->email_template_body = 'email_template_statement'; $this->email_object->variables = [ '$client' => $this->client->present()->name(), '$start_date' => '2022-01-01', '$end_date' => '2023-01-01', ]; $this->email_service = new EmailService($this->email_object, $this->company); } public function testPreFlightChecksHosted() { config(['ninja.environment' => 'hosted']); $this->assertFalse($this->email_service->preFlightChecksFail()); } public function testPreFlightChecksSelfHost() { config(['ninja.environment' => 'selfhost']); $this->assertFalse($this->email_service->preFlightChecksFail()); } }