\BuoyRespondersTest

Custom test case 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_add_a_guardian()
test_only_one_guardian_despite_adding_same_guardian_twice()
test_adding_same_guardian_twice_returns_wp_error()
test_adding_nonexistent_user_as_a_guardian_returns_wp_error()
test_adding_self_as_guardian_returns_wp_error()
test_removing_guardian_removes_meta_field()
test_adding_guardian_adds_guardian_meta_field()
test_removing_guardian_removes_extra_guardian_meta_field()
test_setGuardianInfo()
test_getResponseTeam_returns_team_of_requested_user()
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() 

test_add_a_guardian()

test_add_a_guardian() 

test_only_one_guardian_despite_adding_same_guardian_twice()

test_only_one_guardian_despite_adding_same_guardian_twice() 

test_adding_same_guardian_twice_returns_wp_error()

test_adding_same_guardian_twice_returns_wp_error() 

test_adding_nonexistent_user_as_a_guardian_returns_wp_error()

test_adding_nonexistent_user_as_a_guardian_returns_wp_error() 

test_adding_self_as_guardian_returns_wp_error()

test_adding_self_as_guardian_returns_wp_error() 

test_removing_guardian_removes_meta_field()

test_removing_guardian_removes_meta_field() 

test_adding_guardian_adds_guardian_meta_field()

test_adding_guardian_adds_guardian_meta_field() 

test_removing_guardian_removes_extra_guardian_meta_field()

test_removing_guardian_removes_extra_guardian_meta_field() 

test_setGuardianInfo()

test_setGuardianInfo() 

test_getResponseTeam_returns_team_of_requested_user()

test_getResponseTeam_returns_team_of_requested_user() 

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.