'header', 'text' => 'View this in your browser.', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], 'text' => [ 'fontColor' => '#222222', 'fontFamily' => 'Arial', 'fontSize' => '12px', 'textAlign' => 'left', ], 'link' => [ 'fontColor' => '#6cb7d4', 'textDecoration' => 'underline', ], ], ]; function testItRendersCorrectly() { $output = Header::render($this->block); $expected_result = ' View this in your browser. '; expect($output)->equals($expected_result); } function testItRendersBackgroundColorCorrectly() { $this->block['styles']['block']['backgroundColor'] = '#f0f0f0'; $output = Header::render($this->block); $expected_result = ' View this in your browser. '; expect($output)->equals($expected_result); } function testItPrefersInlinedCssForLinks() { $this->block['text'] = '

Header text. link

'; $output = Footer::render($this->block); expect($output)->contains('link'); } }