test all the things

This commit is contained in:
Shish
2015-09-20 22:40:04 +01:00
parent 13dfb8861f
commit fc2bbefcb9
22 changed files with 189 additions and 224 deletions

View File

@ -1,9 +1,12 @@
<?php
class NumericScoreTest {
class NumericScoreTest extends ShimmiePHPUnitTestCase {
function testNumericScore() {
$this->log_in_as_user();
$image_id = $this->post_image("tests/pbx_screenshot.jpg", "pbx");
$this->get_page("post/view/$image_id");
return; // FIXME
$this->assert_text("Current Score: 0");
$this->click("Vote Down");
$this->assert_text("Current Score: -1");