function BoxTests::testBoxTypeURL in Boxes 7.2
Test the URL of the boxes types
File
- ./
boxes.test, line 112 - Tests for block.module.
Class
Code
function testBoxTypeURL() {
$test_plugin = array(
'label' => t('Test'),
'name' => 'test_name',
'description' => t('This is a test plugin'),
'handler' => array(
'class' => 'BoxTestPlugin',
'parent' => 'box',
),
);
$box_type = new BoxDefault($test_plugin);
$box_type->type = "test_name";
$this
->assertEqual($box_type
->buildURL(), "test-name", t('URL is formatted correctly.'));
}