Refactor ThemeTest::testPrintPreview
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
This commit is contained in:
parent
1aeed08e54
commit
d3e7c66090
@ -7,6 +7,7 @@
|
||||
*/
|
||||
namespace PhpMyAdmin;
|
||||
|
||||
use PhpMyAdmin\Template;
|
||||
use PhpMyAdmin\ThemeManager;
|
||||
use PhpMyAdmin\Url;
|
||||
|
||||
|
||||
@ -287,14 +287,19 @@ class ThemeTest extends PmaTestCase
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testPrintPreview()
|
||||
public function testGetPrintPreview()
|
||||
{
|
||||
$this->assertEquals(
|
||||
$this->object->getPrintPreview(),
|
||||
'<div class="theme_preview"><h2> (0.0.0.0) </h2><p><a class="take_'
|
||||
. 'theme" name="" href="index.php?set_theme=&server=99&lang=en'
|
||||
. '">No preview available.[ <strong>take it</strong> ]'
|
||||
. '</a></p></div>'
|
||||
$this->assertContains(
|
||||
'<h2>' . "\n" . ' (0.0.0.0)',
|
||||
$this->object->getPrintPreview()
|
||||
);
|
||||
$this->assertContains(
|
||||
'name="" href="index.php?set_theme=&server=99&lang=en">',
|
||||
$this->object->getPrintPreview()
|
||||
);
|
||||
$this->assertContains(
|
||||
'No preview available.',
|
||||
$this->object->getPrintPreview()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user