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
* A mock Customize manager.
25
*
26
* @var \WP_Customize_Manager
27
*/
28
private $wp_customize;
29
30
/**
31
* Register a customizer manager.
32
*
33
* @return void
34
*/
35
public function setUp() {
36
parent::setUp();
37
38
$this->wp_customize = new \WP_Customize_Manager();
39
}
40
41
/**
42
* Check if the nudge contains the proper url and message copy.
43
*/
44
public function test_it_generates_proper_url_and_nudge() {
45
$manager = new Atomic_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.