-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtest-sample.php
More file actions
42 lines (26 loc) · 823 Bytes
/
test-sample.php
File metadata and controls
42 lines (26 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
* Class WP_Test_BootstrapLoader
*
* @package Wp_Bootstrap_Loader
*/
class WP_Test_BootstrapLoader extends WP_UnitTestCase {
// Test jQuery is Loaded.
function testjQueryIsLoaded() {
$this->assertFalse( wp_script_is( 'jquery' ) );
do_action( 'wp_enqueue_scripts' );
$this->assertTrue( wp_script_is( 'jquery' ) );
}
// Test Bootstrap is Loaded.
function testBootstrapIsLoaded() {
$this->assertFalse( wp_script_is( 'bootstrap' ) );
do_action( 'wp_enqueue_scripts' );
$this->assertTrue( wp_script_is( 'bootstrap' ) );
}
// Test WebFont is Loaded.
function testWebfontIsLoaded() {
$this->assertFalse( wp_script_is( 'webfont' ) );
do_action( 'wp_enqueue_scripts' );
$this->assertTrue( wp_script_is( 'webfont' ) );
}
}