public function testFilter()
{
$component = new Advertisement(null, null, $this->settings, $this->styles, $this->layouts);
$json = $component->to_array();
add_filter('apple_news_advertisement_json', function ($json) {
$json['bannerType'] = 'double_height';
return $json;
});
$json = $component->to_array();
$this->assertEquals('double_height', $json['bannerType']);
}