Add comprehensive test coverage for core site features (content, navigation, language, FAQ, news, petition, newsletter) using Pest browser tests and unit tests for custom plugins. Includes test infrastructure (Containerfile.test, compose.test.yaml), test documentation, and test files covering petition form logic, CSV handling, translation, date formatting, rate limiting, and map data building.
11 lines
284 B
PHP
11 lines
284 B
PHP
<?php
|
|
|
|
it('serves the Norwegian homepage by default', function () {
|
|
$this->visit(BASE_URL . '/')
|
|
->assertSourceHas('lang="no"');
|
|
});
|
|
|
|
it('english news section is accessible', function () {
|
|
$this->visit(BASE_URL . '/en/nyheter')
|
|
->assertSourceHas('<main');
|
|
});
|