Completed
Push — add/wpcom-posts-package ( 70d0c5...6e10b4 )
by
unknown
46:43 queued 35:07
created

Test_Thumbnail   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A test_setup_thumbnail() 0 3 1
1
<?php //phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
2
/**
3
 * Test methods from Automattic\Jetpack\WPcom\Posts\Thumbnail
4
 *
5
 * @package automattic/jetpack-wpcom-posts
6
 */
7
8
namespace Automattic\Jetpack\WPcom\Posts;
9
10
use PHPUnit\Framework\TestCase;
11
12
/**
13
 * Class Test_Thumbnail
14
 */
15
class Test_Thumbnail extends TestCase {
16
17
	/**
18
	 * Checks that the thumbnail enhancements are initialized.
19
	 *
20
	 * @covers ::setup_thumbnail
21
	 */
22
	public function test_setup_thumbnail() {
23
		$this->assertEquals( 10, has_action( 'init', __NAMESPACE__ . '\setup_thumbnail' ) );
24
	}
25
}
26