[ticket/358] Remove use of T_EXT_THEME_PATH in attachments side

Additionally, we'll now also test that the portal doesn't show errors
while using subsilver.

B3P-358
This commit is contained in:
Marc Alexander
2014-08-25 22:49:13 +02:00
parent db7ad0361d
commit 5c35cb9cf8
2 changed files with 19 additions and 1 deletions

View File

@@ -24,4 +24,22 @@ class phpbb_functional_portal_no_error_test extends \board3\portal\tests\testfra
{
self::request('GET', 'app.php/portal');
}
public function test_enable_subsilver()
{
$crawler = self::request('GET', 'adm/index.php?i=acp_styles&mode=install&sid=' . $this->sid);
$link = $crawler->selectLink('Install style')->link()->getUri();
$crawler = self::request('GET', substr($link, strpos($link, '/adm') + 1));
$this->assertContains('Style "subsilver2" has been installed', $crawler->text());
}
/**
* @dependsOn test_enable_subsilver
*/
public function test_portal_subsilver()
{
$crawler = self::request('GET', 'app.php/portal');
$this->assertContains('subsilver', $crawler->text());
self::request('GET', 'app.php/portal?style=2');
}
}