diff options
Diffstat (limited to 'site/app/tests/views/admin/addons_status.test.php')
-rw-r--r-- | site/app/tests/views/admin/addons_status.test.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/site/app/tests/views/admin/addons_status.test.php b/site/app/tests/views/admin/addons_status.test.php new file mode 100644 index 0000000..a85d26d --- /dev/null +++ b/site/app/tests/views/admin/addons_status.test.php @@ -0,0 +1,27 @@ +<?php + +class AdminAddonsStatusTest extends WebTestHelper { + + function AdminConfigTest() { + $this->WebTestCase('Views->Admin->Addons Status Test'); + } + + function setUp() { + $this->login(); + $this->getAction('/admin/addons?q=[7]'); + } + + function testRemoraPage() { + $this->assertWantedPattern('/Mozilla Add-ons/i', 'pattern detected'); + $this->assertResponse('200'); + } + + /** + * There should be links for each version of the addon. + */ + function testVersionLinks() { + $this->assertLinkLocation('/editors/review/9', '9'); + $this->assertLinkLocation('/editors/review/1', '1'); + } +} +?> |