[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:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user