PHP 클래스 Twitter\Tests\Widgets\Buttons\Follow

파일 보기 프로젝트 열기: twitter/wordpress

보호된 프로퍼티들

프로퍼티 타입 설명
$button Follow object initialized to 'twitter' screen_name before each test

공개 메소드들

메소드 설명
setUp ( ) : void Initialize a Follow object before each test
sizeProvider ( ) : array Test sizes
testGetScreenName ( ) : void Test getting screen_name
testHideCount ( ) : void Test setting count option
testHideScreenName ( ) : void Test hiding show screen_name option
testHideScreenNameFromOptionsArray ( string | integer | boolean $test_value, string $message = '' ) : void Test hiding screen_name from an options array
testSetSize ( string $size, boolean $expected_valid, string $message = '' ) : void Test setting button size
testShowCount ( ) : void Test resetting count option
testShowCountFromOptionsArray ( string | integer | boolean $test_value, string $message = '' ) : void Test setting count from an options array
testShowScreenName ( ) : void Test setting show screen_name option
testsetSizeFromOptionsArray ( string $size, boolean $expected_valid, string $message = '' ) : void Test setting size from an options array

보호된 메소드들

메소드 설명
hideCountResult ( ) : void Test if hide screen name was successfully set
hideScreenNameResult ( ) : void Test if hide screen name was successfully set
optionsArraySetUp ( ) : array Create a new array with the base required values expected by the ::fromArray constructor
setSizeResult ( string $size, boolean $expected_valid, string $message = '' ) : void Test if hide screen name was successfully set

메소드 상세

hideCountResult() 보호된 메소드

Test if hide screen name was successfully set
또한 보기: ::testShowCount
부터: 1.0.0
protected hideCountResult ( ) : void
리턴 void

hideScreenNameResult() 보호된 메소드

Test if hide screen name was successfully set
또한 보기: ::testHideScreenName
부터: 1.0.0
protected hideScreenNameResult ( ) : void
리턴 void

optionsArraySetUp() 보호된 정적인 메소드

Create a new array with the base required values expected by the ::fromArray constructor
부터: 1.0.0
protected static optionsArraySetUp ( ) : array
리턴 array options array { @type string key @type string screen_name }

setSizeResult() 보호된 메소드

Test if hide screen name was successfully set
또한 보기: ::testHideScreenName
부터: 1.0.0
protected setSizeResult ( string $size, boolean $expected_valid, string $message = '' ) : void
$size string size
$expected_valid boolean is the passed size expected to pass?
$message string error message
리턴 void

setUp() 공개 메소드

Initialize a Follow object before each test
부터: 1.0.0
public setUp ( ) : void
리턴 void

sizeProvider() 공개 정적인 메소드

Test sizes
부터: 1.0.0
public static sizeProvider ( ) : array
리턴 array sizes to test { @type array size string, expected validity, message }

testGetScreenName() 공개 메소드

The tested function is a getter passthrough to the stored intent
부터: 1.0.0
public testGetScreenName ( ) : void
리턴 void

testHideCount() 공개 메소드

Test setting count option
부터: 1.0.0
public testHideCount ( ) : void
리턴 void

testHideScreenName() 공개 메소드

Test hiding show screen_name option
부터: 1.0.0
public testHideScreenName ( ) : void
리턴 void

testHideScreenNameFromOptionsArray() 공개 메소드

Test hiding screen_name from an options array
부터: 1.0.0
public testHideScreenNameFromOptionsArray ( string | integer | boolean $test_value, string $message = '' ) : void
$test_value string | integer | boolean falsey value
$message string error message
리턴 void

testSetSize() 공개 메소드

Test setting button size
부터: 1.0.0
public testSetSize ( string $size, boolean $expected_valid, string $message = '' ) : void
$size string size
$expected_valid boolean is the passed size expected to pass?
$message string error message
리턴 void

testShowCount() 공개 메소드

Test resetting count option
부터: 1.0.0
public testShowCount ( ) : void
리턴 void

testShowCountFromOptionsArray() 공개 메소드

Test setting count from an options array
부터: 1.0.0
public testShowCountFromOptionsArray ( string | integer | boolean $test_value, string $message = '' ) : void
$test_value string | integer | boolean truthy value
$message string error message
리턴 void

testShowScreenName() 공개 메소드

Test setting show screen_name option
부터: 1.0.0
public testShowScreenName ( ) : void
리턴 void

testsetSizeFromOptionsArray() 공개 메소드

Test setting size from an options array
부터: 1.0.0
public testsetSizeFromOptionsArray ( string $size, boolean $expected_valid, string $message = '' ) : void
$size string size
$expected_valid boolean is the passed size expected to pass?
$message string error message
리턴 void

프로퍼티 상세

$button 보호되어 있는 프로퍼티

Follow object initialized to 'twitter' screen_name before each test
부터: 1.0.0
protected $button