fix gitlab tests
This commit is contained in:
@@ -23,7 +23,7 @@ class ContactSubmissionServiceTest extends TestCase
|
||||
$emailService = $this->createMock(EmailDispatchService::class);
|
||||
$emailService->method('send')->willReturn(false);
|
||||
|
||||
$service = new ContactSubmissionService($emailService, new GlobalConfigService);
|
||||
$service = new ContactSubmissionService($emailService, new GlobalConfigService());
|
||||
|
||||
$result = $service->submit([
|
||||
'email' => 'contact@example.com',
|
||||
|
||||
@@ -9,7 +9,7 @@ class FrontendPageServiceTest extends TestCase
|
||||
{
|
||||
public function test_page_returns_payload(): void
|
||||
{
|
||||
$service = new FrontendPageService;
|
||||
$service = new FrontendPageService();
|
||||
$payload = $service->page('index');
|
||||
|
||||
$this->assertSame('index', $payload['page']);
|
||||
|
||||
@@ -12,9 +12,9 @@ class StaticPageServiceTest extends TestCase
|
||||
{
|
||||
$dir = public_path('html');
|
||||
File::ensureDirectoryExists($dir);
|
||||
File::put($dir.'/terms_of_service.html', '<h1>Terms</h1>');
|
||||
File::put($dir . '/terms_of_service.html', '<h1>Terms</h1>');
|
||||
|
||||
$service = new StaticPageService;
|
||||
$service = new StaticPageService();
|
||||
$result = $service->load('terms_of_service.html', 'terms_of_service');
|
||||
|
||||
$this->assertTrue($result['ok']);
|
||||
@@ -24,7 +24,7 @@ class StaticPageServiceTest extends TestCase
|
||||
|
||||
public function test_load_missing_returns_error(): void
|
||||
{
|
||||
$service = new StaticPageService;
|
||||
$service = new StaticPageService();
|
||||
$result = $service->load('missing.html', 'missing');
|
||||
|
||||
$this->assertFalse($result['ok']);
|
||||
|
||||
Reference in New Issue
Block a user