Merge pull request #195 from marc1706/extend/vote_test

[extend/vote_test] Extend vote test to vote on poll
This commit is contained in:
Marc Alexander
2013-11-19 08:45:09 -08:00
3 changed files with 12 additions and 2 deletions

View File

@@ -22,6 +22,6 @@ class phpbb_functional_portal_no_error_test extends \board3\portal\tests\testfra
public function test_vanilla_board() public function test_vanilla_board()
{ {
$crawler = self::request('GET', 'app.php?portal'); $crawler = self::request('GET', 'app.php/portal');
} }
} }

View File

@@ -30,7 +30,13 @@ class phpbb_functional_portal_vote_poll_test extends \board3\portal\tests\testfr
if (isset($data)) 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');
} }
} }
} }

View File

@@ -46,6 +46,10 @@ server {
fastcgi_pass unix:$PHP_FPM_SOCK; fastcgi_pass unix:$PHP_FPM_SOCK;
include fastcgi_params; include fastcgi_params;
} }
location / {
try_files \$uri \$uri/ /app.php\$is_args\$args;
}
} }
" | sudo tee $NGINX_CONF > /dev/null " | sudo tee $NGINX_CONF > /dev/null