TestClassScriptLoaderOsm
extends WP_UnitTestCase
in package
Tags
Table of Contents
- $_pSubject : ScriptLoaderMapOsm
- $_pWPScriptStyle : WPScriptStyleTest
- $_scriptsExpectation : array<string|int, mixed>
- $_stylesExpectation : array<string|int, mixed>
- prepare() : mixed
- testEnqueue() : mixed
- testRegister() : mixed
Properties
$_pSubject
private
ScriptLoaderMapOsm
$_pSubject
= null
$_pWPScriptStyle
private
WPScriptStyleTest
$_pWPScriptStyle
= null
$_scriptsExpectation
private
array<string|int, mixed>
$_scriptsExpectation
= ['leaflet-script' => ['deps' => [], 'ver' => false, 'inFooter' => false]]
$_stylesExpectation
private
array<string|int, mixed>
$_stylesExpectation
= ['leaflet-style' => ['deps' => [], 'ver' => false, 'media' => 'all']]
Methods
prepare()
public
prepare() : mixed
Tags
Return values
mixed —testEnqueue()
public
testEnqueue() : mixed
Return values
mixed —testRegister()
public
testRegister() : mixed