extendable user stats rather than hardcoded with assumptions of extensions

This commit is contained in:
Shish
2009-08-18 22:30:52 +01:00
parent f058d5dd5b
commit b1bcb8252f
8 changed files with 79 additions and 33 deletions

View File

@@ -15,6 +15,11 @@ class FavoritesTest extends ShimmieWebTestCase {
$this->assertTitle("Image $image_id: test");
$this->assertText("Favorited By");
$this->get_page("user/test");
$this->assertText("Images favorited: 1");
$this->click("Images favorited");
$this->assertTitle("Image $image_id: test");
$this->click("Un-Favorite");
$this->assertNoText("Favorited By");