PHP Class Twitter\Tests\Widgets\Buttons\PeriscopeOnAir

Afficher le fichier Open project: twitter/wordpress

Protected Properties

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

Méthodes publiques

Méthode Description
setUp ( ) : void Initialize a PeriscopeOnAir object before each test
sizeProvider ( ) : array Test sizes
testGetUsername ( ) : void Test getting username
testSetSize ( string $size, boolean $expected_valid, string $message = '' ) : void Test setting button size
testsetSizeFromOptionsArray ( string $size, boolean $expected_valid, string $message = '' ) : void Test setting size from an options array

Méthodes protégées

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

optionsArraySetUp() protected static méthode

Create a new array with the base required values expected by the ::fromArray constructor
Since: 1.3.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
Since: 1.3.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 PeriscopeOnAir object before each test
Since: 1.3.0
public setUp ( ) : void
Résultat void

sizeProvider() public static méthode

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

testGetUsername() public méthode

Test getting username
Since: 1.3.0
public testGetUsername ( ) : void
Résultat void

testSetSize() public méthode

Test setting button size
Since: 1.3.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

testsetSizeFromOptionsArray() public méthode

Test setting size from an options array
Since: 1.3.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

PeriscopeOnAir object initialized to 'twitter' screen_name before each test
Since: 1.3.0
protected $button