end category searches
This commit is contained in:
parent
3fda650af7
commit
b2198c25c2
@ -413,6 +413,12 @@ class ComicPressStoryline {
|
||||
sort($this->_category_search);
|
||||
return $this;
|
||||
}
|
||||
|
||||
function end_search() {
|
||||
$result = $this->_category_search;
|
||||
$this->_category_search = array();
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
@ -393,6 +393,11 @@ class ComicPressStorylineTest extends PHPUnit_Framework_TestCase {
|
||||
$this->assertEquals(array(5, 6), $css->_category_search);
|
||||
}
|
||||
|
||||
function testEndSearch() {
|
||||
$this->css->_category_search = array(1,2,3);
|
||||
$this->assertEquals(array(1,2,3), $this->css->end_search());
|
||||
$this->assertEquals(array(), $this->css->_category_search);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Loading…
Reference in New Issue
Block a user