handle test error
This commit is contained in:
parent
a5ba9279c4
commit
4b59c79fed
@ -10,8 +10,10 @@ class LinkImageTest extends ShimmieWebTestCase {
|
|||||||
$matches = array();
|
$matches = array();
|
||||||
preg_match("#value='(http://.*(/|%2F)post(/|%2F)view(/|%2F)[0-9]+)'#", $raw, $matches);
|
preg_match("#value='(http://.*(/|%2F)post(/|%2F)view(/|%2F)[0-9]+)'#", $raw, $matches);
|
||||||
$this->assertTrue(count($matches) > 0);
|
$this->assertTrue(count($matches) > 0);
|
||||||
|
if($matches) {
|
||||||
$this->get($matches[1]);
|
$this->get($matches[1]);
|
||||||
$this->assert_title("Image $image_id: pie");
|
$this->assert_title("Image $image_id: pie");
|
||||||
|
}
|
||||||
|
|
||||||
$this->log_out();
|
$this->log_out();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user