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

Test_Assets_Manager::test_render_default_logo()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 5
rs 10
c 0
b 0
f 0
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