\BuoyTeamsTest

Buoy teams 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_team_post_type_exists()
test_add_team_member_meta_box_datalist_option_value_matches_user_login()
test_confirmed_members_of_private_teams_are_counted_as_responders()
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_team_post_type_exists()

test_team_post_type_exists() 

Ensures that WordPress recognizes what a "Buoy Team" is.

test_add_team_member_meta_box_datalist_option_value_matches_user_login()

test_add_team_member_meta_box_datalist_option_value_matches_user_login() 

Ensures the drop-down list of available responders outputs the correct values.

test_confirmed_members_of_private_teams_are_counted_as_responders()

test_confirmed_members_of_private_teams_are_counted_as_responders() 

Ensures responders are found even in private teams.

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.