| @@ 120-122 (lines=3) @@ | ||
| 117 | $panel = new WP_Customize_Panel( $this->manager, 'foo', $args ); |
|
| 118 | $data = $panel->json(); |
|
| 119 | $this->assertEquals( 'foo', $data['id'] ); |
|
| 120 | foreach ( array( 'title', 'description', 'priority', 'type' ) as $key ) { |
|
| 121 | $this->assertEquals( $args[ $key ], $data[ $key ] ); |
|
| 122 | } |
|
| 123 | $this->assertEmpty( $data['content'] ); |
|
| 124 | $this->assertTrue( $data['active'] ); |
|
| 125 | $this->assertInternalType( 'int', $data['instanceNumber'] ); |
|
| @@ 127-129 (lines=3) @@ | ||
| 124 | $section = new WP_Customize_Section( $this->manager, 'foo', $args ); |
|
| 125 | $data = $section->json(); |
|
| 126 | $this->assertEquals( 'foo', $data['id'] ); |
|
| 127 | foreach ( array( 'title', 'description', 'priority', 'panel', 'type' ) as $key ) { |
|
| 128 | $this->assertEquals( $args[ $key ], $data[ $key ] ); |
|
| 129 | } |
|
| 130 | $this->assertEmpty( $data['content'] ); |
|
| 131 | $this->assertTrue( $data['active'] ); |
|
| 132 | $this->assertInternalType( 'int', $data['instanceNumber'] ); |
|