\BuoySettingsTest

Buoy settings testing class.

We use PHPUnit's @ticket annotation to refer to GitHub issues, but still want to use WP_UnitTestCase for its various factory methods, so we subclass it and stub out the Trac-checking part. :)

Summary

Methods
Properties
Constants
setUp()
test_default_safety_information_exists()
test_future_alerts_are_only_enabled_on_posix_systems()
test_future_alerts_feature_toggle_ui_depends_on_posix()
No public properties found
No constants found
checkRequirements()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

setUp()

setUp() 

Sets up the testing environment before each test.

test_default_safety_information_exists()

test_default_safety_information_exists() 

Ensures default "Safety Information" exists.

test_future_alerts_are_only_enabled_on_posix_systems()

test_future_alerts_are_only_enabled_on_posix_systems() 

Ensures "timed/scheduled/future alerts" are off unless we can use POSIX functions, which are required by the Crontab manager class.

test_future_alerts_feature_toggle_ui_depends_on_posix()

test_future_alerts_feature_toggle_ui_depends_on_posix() 

Ensures the "timed/scheduled/future alerts" feature toggle is only displayed on POSIX systems.

checkRequirements()

checkRequirements() : void

Empty method to disable integration with WP Core Trac.

Overrides the parent's method to disable fetching information from the WordPress Core Trac ticket tracker which causes tests with the @ticket annotation in our own test cases to fail.