Completed
Push — add/wpcom-posts-package ( cb353b...981416 )
by
unknown
97:55 queued 87:16
created

Test_Thumbnail::test_thumbnail_column_header()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
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 WorDBless\BaseTestCase;
11
12
/**
13
 * Class Test_Thumbnail
14
 */
15
class Test_Thumbnail extends BaseTestCase {
16
	/**
17
	 * Core class used to implement displaying posts in a list table.
18
	 *
19
	 * @var WP_Posts_List_Table
20
	 */
21
	protected $table;
22
23
	/**
24
	 * Setup runs before each test.
25
	 *
26
	 * @before
27
	 */
28
	public function set_up() {
29
		new Thumbnail();
30
		$this->table = _get_list_table( 'WP_Posts_List_Table', array( 'screen' => 'edit-page' ) );
31
	}
32
33
	/**
34
	 * Checks that a new column header for thumbnails is added to the posts list table.
35
	 */
36
	public function test_thumbnail_column_header() {
37
		$columns = $this->table->get_columns();
38
		$this->assertSame( '', $columns['thumbnail'] );
39
	}
40
}
41