Dcycle Blog

Enable theme

October 24, 2013

<?php
theme_enable(array('mytheme'));
variable_set('theme_default', 'mytheme');

and for the test

<?php
$this->drupalGet('/');
$this->assertRaw('themes/mytheme');