Add indexTest for mailgateway

This commit is contained in:
philipp lang 2023-06-07 21:39:29 +02:00 committed by Philipp Lang
parent c653a4b0c1
commit 9442714086
1 changed files with 14 additions and 2 deletions

View File

@ -44,10 +44,22 @@ class IndexTest extends TestCase
$response = $this->get('/setting/mailgateway');
$this->assertInertiaHas(route('api.mailgateway.store'), $response, 'data.meta.links.store');
$this->assertInertiaHas(route('mailgateway.store'), $response, 'data.meta.links.store');
$this->assertInertiaHas([
'id' => null,
'name' => '-- kein --',
], $response, 'data.meta.types.0');
$this->assertInertiaHas([
'id' => LocalType::class,
'name' => 'Lokal',
], $response, 'data.meta.types.0');
], $response, 'data.meta.types.1');
$this->assertInertiaHas([
'domain' => '',
'name' => '',
'type' => [
'params' => [],
'cls' => null,
],
], $response, 'data.meta.default');
}
}