Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
weblate committed May 6, 2015
2 parents 7134bda + 9650024 commit b5c7b64
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 301 deletions.
30 changes: 10 additions & 20 deletions test/libraries/PMA_user_preferences_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -414,38 +414,28 @@ public function testUserprefsAutoloadGetHeader()
$GLOBALS['PMA_PHP_SELF'] = 'phpunit';
$result = PMA_userprefsAutoloadGetHeader();

$this->assertTag(
PMA_getTagArray(
'<form action="prefs_manage.php" method="post">'
),
$this->assertContains(
'<form action="prefs_manage.php" method="post">',
$result
);

$this->assertTag(
PMA_getTagArray(
'<input type="hidden" name="token" value="token"'
),
$this->assertContains(
'<input type="hidden" name="token" value="token"',
$result
);

$this->assertTag(
PMA_getTagArray(
'<input type="hidden" name="json" value="" />'
),
$this->assertContains(
'<input type="hidden" name="json" value="" />',
$result
);

$this->assertTag(
PMA_getTagArray(
'<input type="hidden" name="submit_import" value="1" />'
),
$this->assertContains(
'<input type="hidden" name="submit_import" value="1" />',
$result
);

$this->assertTag(
PMA_getTagArray(
'<input type="hidden" name="return_url" value="phpunit?" />'
),
$this->assertContains(
'<input type="hidden" name="return_url" value="phpunit?" />',
$result
);
}
Expand Down
Loading

0 comments on commit b5c7b64

Please sign in to comment.