This class seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
23
24
/**
25
* A mock Customize manager.
26
*
27
* @var \WP_Customize_Manager
28
*/
29
private $wp_customize;
30
31
/**
32
* Register a customizer manager.
33
*
34
* @return void
35
*/
36
public function setUp() {
37
parent::setUp();
38
39
$this->wp_customize = new \WP_Customize_Manager();
40
}
41
42
/**
43
* Check if the manager constructs the proper url and copy message.
44
*/
45
public function test_it_generates_proper_url_and_nudge() {
46
$manager = new WPCOM_Additional_CSS_Manager( 'foo.com' );
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.