Skip to content

Commit

Permalink
Fixed test_load_frontend_scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
devin committed Jul 14, 2015
1 parent 6a515f4 commit a612988
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/tests-scripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function test_file_hooks() {
/**
* Test that all the scripts are loaded properly.
*/
public function test_load_scripts() {
public function test_load_frontend_scripts() {

// Prepare test
$this->go_to( '/' );
Expand All @@ -31,7 +31,13 @@ public function test_load_scripts() {

$this->assertTrue( wp_script_is( 'give-cc-validator', 'enqueued' ) );
$this->assertTrue( wp_script_is( 'give-blockui', 'enqueued' ) );
$this->assertTrue( wp_script_is( 'give-admin-scripts', 'enqueued' ) );
$this->assertTrue( wp_script_is( 'give-qtip', 'enqueued' ) );
$this->assertTrue( wp_script_is( 'give-mask-money', 'enqueued' ) );
$this->assertTrue( wp_script_is( 'give-magnific', 'enqueued' ) );
$this->assertTrue( wp_script_is( 'give-checkout-global', 'enqueued' ) );
$this->assertTrue( wp_script_is( 'give-scripts', 'enqueued' ) );
$this->assertTrue( wp_script_is( 'give-ajax', 'enqueued' ) );

} else {
$this->assertTrue( wp_script_is( 'give', 'enqueued' ) );
}
Expand Down

0 comments on commit a612988

Please sign in to comment.