'footer', 'text' => '

Footer text. link

', 'styles' => [ 'block' => [ 'backgroundColor' => 'transparent', ], 'text' => [ 'fontColor' => '#222222', 'fontFamily' => 'Roboto', 'fontSize' => '12px', 'textAlign' => 'center', ], 'link' => [ 'fontColor' => '#689f2c', 'textDecoration' => 'none', ], ], ]; function testItRendersCorrectly() { $output = Footer::render($this->block); $expected_result = ' Footer text. link '; expect($output)->equals($expected_result); } function testItRendersWithBackgroundColor() { $this->block['styles']['block']['backgroundColor'] = '#f0f0f0'; $output = Footer::render($this->block); $expected_result = ' Footer text. link '; expect($output)->equals($expected_result); } function testItPrefersInlinedCssForLinks() { $this->block['text'] = '

Footer text. link

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