Merge pull request #195 from marc1706/extend/vote_test
[extend/vote_test] Extend vote test to vote on poll
This commit is contained in:
@@ -22,6 +22,6 @@ class phpbb_functional_portal_no_error_test extends \board3\portal\tests\testfra
|
||||
|
||||
public function test_vanilla_board()
|
||||
{
|
||||
$crawler = self::request('GET', 'app.php?portal');
|
||||
$crawler = self::request('GET', 'app.php/portal');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,7 +30,13 @@ class phpbb_functional_portal_vote_poll_test extends \board3\portal\tests\testfr
|
||||
|
||||
if (isset($data))
|
||||
{
|
||||
$crawler = self::request('GET', 'app.php?portal');
|
||||
$crawler = self::request('GET', 'app.php/portal');
|
||||
$form = $crawler->selectButton('Submit vote')->form();
|
||||
$form->setValues(array('vote_id' => array(1)));
|
||||
$crawler = self::submit($form);
|
||||
|
||||
// no errors should appear on portal
|
||||
$crawler = self::request('GET', 'app.php/portal');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,6 +46,10 @@ server {
|
||||
fastcgi_pass unix:$PHP_FPM_SOCK;
|
||||
include fastcgi_params;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files \$uri \$uri/ /app.php\$is_args\$args;
|
||||
}
|
||||
}
|
||||
" | sudo tee $NGINX_CONF > /dev/null
|
||||
|
||||
|
||||
Reference in New Issue
Block a user