function BoxTests::testRendering in Boxes 7.2
Tests viewing boxes.
File
- ./
boxes.test, line 202 - Tests for block.module.
Class
Code
function testRendering() {
$values = array(
'delta' => 'test_boxes',
'label' => t('Test boxes'),
'title' => t('Test boxes'),
'type' => $this->plugin_name,
'view_mode' => 'default',
'data' => array(
'test_boolean' => FALSE,
'test_string' => t('New String'),
'test_array' => array(
'test_array_1' => 'new_value',
),
),
);
$box = boxes_create($values);
boxes_save($box);
$this
->drupalGet("block/{$box->identifier()}");
$this
->assertResponse(200, t('Box Page is viewable'));
$this
->assertText($box
->label(), t('Box Page is viewable'));
}