Completed
Push — try/composer-jetpack-logo-depe... ( 8eeb81 )
by
unknown
07:25
created

Test_Assets_Manager   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A test_render_default_logo() 0 5 1
1
<?php
2
3
use Jetpack\Assets\Assets_Manager;
4
use PHPUnit\Framework\TestCase;
5
6
class Test_Assets_Manager extends TestCase {
7
8
	function test_render_default_logo() {
9
		$assets_manager = new Assets_Manager( array( 'images' => dirname( __FILE__ ) ) );
10
		$url = $assets_manager->get_image_url('filename.jpg' );
11
		$this->assertContains( str_replace( WP_CONTENT_DIR, '', dirname( __FILE__ ) ) . '/filename.jpg', $url );
12
	}
13
}
14