Skip to content
Snippets Groups Projects
Commit a01d357a authored by Chris Hallberg's avatar Chris Hallberg
Browse files

Test advanced search persistence.

parent 7434de66
No related merge requests found
......@@ -38,6 +38,34 @@ namespace VuFindTest\Mink;
*/
class AdvancedSearchTest extends \VuFindTest\Unit\MinkTestCase
{
/**
* Test persistent
*
* @return void
*/
public function testPersistent()
{
// Go to the advanced search page
$session = $this->getMinkSession();
$path = '/Search/Advanced';
$session->visit($this->getVuFindUrl() . $path);
$page = $session->getPage();
// Submit empty search form
$this->findCss($page, '[type=submit]')->press();
// Test edit search
$links = $page->findAll('css', '.adv_search_links a');
$isAdv = false;
foreach ($links as $link) {
if ($this->checkVisibility($link)
&& $link->getHtml() == 'Edit this Advanced Search'
) {
$isAdv = true;
break;
}
}
$this->assertTrue($isAdv);
}
/**
* Test that the home page is available.
*
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment