wp-bootstrap/wp-bootstrap-loader

View on GitHub
tests/test-sample.php

Summary

Maintainability
A
0 mins
Test Coverage
Missing file doc comment
<?php
/**
* Class WP_Test_BootstrapLoader
*
* @package Wp_Bootstrap_Loader
There must be no blank lines after the class comment
*/
 
 
The class WP_Test_BootstrapLoader is not named in CamelCase.
class WP_Test_BootstrapLoader extends WP_UnitTestCase {
 
// Test jQuery is Loaded.
Visibility must be declared on method "testjQueryIsLoaded"
You must use "/**" style comments for a function comment
function testjQueryIsLoaded() {
Whitespace found at end of line
Tabs must be used to indent lines; spaces are not allowed
$this->assertFalse( wp_script_is( 'jquery' ) );
Whitespace found at end of line
Tabs must be used to indent lines; spaces are not allowed
do_action( 'wp_enqueue_scripts' );
Tabs must be used to indent lines; spaces are not allowed
$this->assertTrue( wp_script_is( 'jquery' ) );
Whitespace found at end of line
Tabs must be used to indent lines; spaces are not allowed
Whitespace found at end of line
}
Whitespace found at end of line
// Test Bootstrap is Loaded.
Visibility must be declared on method "testBootstrapIsLoaded"
You must use "/**" style comments for a function comment
function testBootstrapIsLoaded() {
Whitespace found at end of line
Tabs must be used to indent lines; spaces are not allowed
$this->assertFalse( wp_script_is( 'bootstrap' ) );
Whitespace found at end of line
Tabs must be used to indent lines; spaces are not allowed
do_action( 'wp_enqueue_scripts' );
Tabs must be used to indent lines; spaces are not allowed
$this->assertTrue( wp_script_is( 'bootstrap' ) );
Whitespace found at end of line
Tabs must be used to indent lines; spaces are not allowed
Whitespace found at end of line
}
Whitespace found at end of line
// Test WebFont is Loaded.
Visibility must be declared on method "testWebfontIsLoaded"
You must use "/**" style comments for a function comment
function testWebfontIsLoaded() {
Whitespace found at end of line
Tabs must be used to indent lines; spaces are not allowed
$this->assertFalse( wp_script_is( 'webfont' ) );
Whitespace found at end of line
Tabs must be used to indent lines; spaces are not allowed
do_action( 'wp_enqueue_scripts' );
Tabs must be used to indent lines; spaces are not allowed
$this->assertTrue( wp_script_is( 'webfont' ) );
Whitespace found at end of line
Tabs must be used to indent lines; spaces are not allowed
Whitespace found at end of line
}
Whitespace found at end of line
}