diff options
Diffstat (limited to 'site/app/tests/views/helpers')
-rw-r--r-- | site/app/tests/views/helpers/addons_html.test.php | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/site/app/tests/views/helpers/addons_html.test.php b/site/app/tests/views/helpers/addons_html.test.php index a6fa122..44ce4c9 100644 --- a/site/app/tests/views/helpers/addons_html.test.php +++ b/site/app/tests/views/helpers/addons_html.test.php @@ -41,12 +41,9 @@ class AddonsHtmlHelperTest extends UnitTestCase { var $html = null; // the helper function setUp() { - - static $tags; loadHelper('AddonsHtml'); - loadModel('Addon'); - $this->Addon = new Addon(); + $this->html =& new AddonsHtmlHelper(); $this->html->webroot = ''; $this->html->here = ''; @@ -103,16 +100,5 @@ class AddonsHtmlHelperTest extends UnitTestCase { $this->assertEqual('abcde', $this->html->truncateChars(5, 'abcde')); $this->assertEqual('ab...', $this->html->truncateChars(5, 'abcdef')); } - - /** - * Tests that an addon that has the addons_tags.feature = 1 is shown as featured - */ - function testRecommendedFlag() { - $addon = $this->Addon->getListAddons(4021, array(STATUS_PUBLIC), '', true); - $addon = $addon[0]; - $result = $this->html->flag($addon); - phpQuery::newDocument($result); - $this->assertEqual(pq('h5.flag a')->text(), 'recommended', 'Category recommended and recommended addons are flagged as recommended'); - } } ?> |