Skip to content

feat: Add unit tests for Admin/Settings class #1505

feat: Add unit tests for Admin/Settings class

feat: Add unit tests for Admin/Settings class #1505

Triggered via pull request June 30, 2025 15:00
Status Failure
Total duration 47s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

cs.yml

on: pull_request
Check code style
42s
Check code style
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 10 warnings
Check code style: tests/phpunit/Admin/SettingsTest.php#L25
Only one object structure is allowed in a file
Check code style: tests/phpunit/Admin/SettingsTest.php#L24
Expected 1 spaces before closing parenthesis; 0 found
Check code style: tests/phpunit/Admin/SettingsTest.php#L20
Object property "$returnValue" is not in valid snake_case format, try "$return_value"
Check code style: tests/phpunit/Admin/SettingsTest.php#L19
Missing doc comment for function get_scannable_post_types()
Check code style: tests/phpunit/Admin/SettingsTest.php#L18
Expected 1 space before the array closer in a single line array. Found: no spaces
Check code style: tests/phpunit/Admin/SettingsTest.php#L18
Expected 1 space after the array opener in a single line array. Found: no spaces
Check code style: tests/phpunit/Admin/SettingsTest.php#L18
Missing member variable doc comment
Check code style: tests/phpunit/Admin/SettingsTest.php#L18
Member variable "$returnValue" is not in valid snake_case format, try "$return_value"
Check code style: tests/phpunit/Admin/SettingsTest.php#L17
Missing doc comment for class MockEDACPSettings
Check code style: tests/phpunit/Admin/SettingsTest.php#L1
Missing file doc comment
Check code style
Process completed with exit code 2.
Check code style: tests/phpunit/Admin/SettingsTest.php#L187
Equals sign not aligned with surrounding assignments; expected 5 spaces but found 1 space
Check code style: tests/phpunit/Admin/SettingsTest.php#L87
Unused function parameter $operator.
Check code style: tests/phpunit/Admin/SettingsTest.php#L87
Unused function parameter $output.
Check code style: tests/phpunit/Admin/SettingsTest.php#L87
Unused function parameter $args.
Check code style: tests/phpunit/Admin/SettingsTest.php#L67
Equals sign not aligned with surrounding assignments; expected 5 spaces but found 1 space
Check code style: tests/phpunit/Admin/SettingsTest.php#L56
Found precision alignment of 1 spaces.
Check code style: tests/phpunit/Admin/SettingsTest.php#L55
Found precision alignment of 1 spaces.
Check code style: tests/phpunit/Admin/SettingsTest.php#L54
Equals sign not aligned with surrounding assignments; expected 8 spaces but found 1 space
Check code style: tests/phpunit/Admin/SettingsTest.php#L47
Equals sign not aligned with surrounding assignments; expected 5 spaces but found 1 space
Check code style: tests/phpunit/Admin/SettingsTest.php#L39
Equals sign not aligned with surrounding assignments; expected 5 spaces but found 1 space