WSL_Test_Globals   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 40
rs 10
c 0
b 0
f 0
wmc 6
lcom 0
cbo 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 4 1
A tearDown() 0 4 1
A test_version() 0 6 1
A test_providers() 0 6 1
A test_components() 0 6 1
A test_tabs() 0 6 1
1
<?php
2
/*!
3
* WordPress Social Login
4
*
5
* https://miled.github.io/wordpress-social-login/ | https://github.com/miled/wordpress-social-login
6
*   (c) 2011-2020 Mohamed Mrassi and contributors | https://wordpress.org/plugins/wordpress-social-login/
7
*/
8
9
class WSL_Test_Globals extends WP_UnitTestCase
10
{
11
	function setUp()
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
12
	{
13
		parent::setUp();
14
	}
15
16
	function tearDown()
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
17
	{
18
		parent::tearDown();
19
	}
20
21
	function test_version()
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
22
	{
23
		global $WORDPRESS_SOCIAL_LOGIN_VERSION;
24
25
		$this->assertGreaterThanOrEqual( 3, strlen( $WORDPRESS_SOCIAL_LOGIN_VERSION ) );
26
	}
27
28
	function test_providers()
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
29
	{
30
		global $WORDPRESS_SOCIAL_LOGIN_PROVIDERS_CONFIG;
31
32
		$this->assertGreaterThan( 25, count( $WORDPRESS_SOCIAL_LOGIN_PROVIDERS_CONFIG ) );
33
	}
34
35
	function test_components()
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
36
	{
37
		global $WORDPRESS_SOCIAL_LOGIN_COMPONENTS;
38
39
		$this->assertEquals( 7, count( $WORDPRESS_SOCIAL_LOGIN_COMPONENTS ) );
40
	}
41
42
	function test_tabs()
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
43
	{
44
		global $WORDPRESS_SOCIAL_LOGIN_ADMIN_TABS;
45
46
		$this->assertEquals( 11, count( $WORDPRESS_SOCIAL_LOGIN_ADMIN_TABS ) );
47
	}
48
}
49