1 common.test | CommonCascadingStylesheetsTestCase::testRenderInlineFullPage() |
Tests rendering inline stylesheets through a full page request.
See also
common_test_render_inline_full_page()
File
- core/
modules/ simpletest/ tests/ common.test, line 838 - Tests for common.inc functionality.
Class
- CommonCascadingStylesheetsTestCase
- Test the Backdrop CSS system.
Code
function testRenderInlineFullPage() {
// Inline CSS is minified unless 'preprocess' => FALSE is passed as a
// backdrop_add_css() option.
$expected = 'body{font-size:254px;}';
// Fetch the page.
$this->backdropGet('common-test/css-render-inline-full-page');
$this->assertRaw($expected, 'Inline stylesheets appear in the full page rendering.');
}