PHP Class Twitter\Tests\Widgets\Buttons\Follow

Afficher le fichier Open project: twitter/wordpress

Protected Properties

Свойство Type Description
$button Follow object initialized to 'twitter' screen_name before each test

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
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

Method Details

hideCountResult() protected méthode

Test if hide screen name was successfully set
See also: ::testShowCount
Since: 1.0.0
protected hideCountResult ( ) : void
Résultat void

hideScreenNameResult() protected méthode

Test if hide screen name was successfully set
See also: ::testHideScreenName
Since: 1.0.0
protected hideScreenNameResult ( ) : void
Résultat void

optionsArraySetUp() protected static méthode

Create a new array with the base required values expected by the ::fromArray constructor
Since: 1.0.0
protected static optionsArraySetUp ( ) : array
Résultat array options array { @type string key @type string screen_name }

setSizeResult() protected méthode

Test if hide screen name was successfully set
See also: ::testHideScreenName
Since: 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
Résultat void

setUp() public méthode

Initialize a Follow object before each test
Since: 1.0.0
public setUp ( ) : void
Résultat void

sizeProvider() public static méthode

Test sizes
Since: 1.0.0
public static sizeProvider ( ) : array
Résultat array sizes to test { @type array size string, expected validity, message }

testGetScreenName() public méthode

The tested function is a getter passthrough to the stored intent
Since: 1.0.0
public testGetScreenName ( ) : void
Résultat void

testHideCount() public méthode

Test setting count option
Since: 1.0.0
public testHideCount ( ) : void
Résultat void

testHideScreenName() public méthode

Test hiding show screen_name option
Since: 1.0.0
public testHideScreenName ( ) : void
Résultat void

testHideScreenNameFromOptionsArray() public méthode

Test hiding screen_name from an options array
Since: 1.0.0
public testHideScreenNameFromOptionsArray ( string | integer | boolean $test_value, string $message = '' ) : void
$test_value string | integer | boolean falsey value
$message string error message
Résultat void

testSetSize() public méthode

Test setting button size
Since: 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
Résultat void

testShowCount() public méthode

Test resetting count option
Since: 1.0.0
public testShowCount ( ) : void
Résultat void

testShowCountFromOptionsArray() public méthode

Test setting count from an options array
Since: 1.0.0
public testShowCountFromOptionsArray ( string | integer | boolean $test_value, string $message = '' ) : void
$test_value string | integer | boolean truthy value
$message string error message
Résultat void

testShowScreenName() public méthode

Test setting show screen_name option
Since: 1.0.0
public testShowScreenName ( ) : void
Résultat void

testsetSizeFromOptionsArray() public méthode

Test setting size from an options array
Since: 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
Résultat void

Property Details

$button protected_oe property

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