mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/17176] Remove no longer needed backward compatible phpunit code
PHPBB3-17176
This commit is contained in:
@@ -38,6 +38,6 @@ class phpbb_functional_acp_smilies_test extends phpbb_functional_test_case
|
||||
$crawler = self::submit($form);
|
||||
|
||||
$html = $crawler->filter('#preview')->html();
|
||||
$this->assertRegexp('(<img [^>]+ alt=">:D" title=">:D"[^>]*>)', $html);
|
||||
$this->assertMatchesRegularExpression('(<img [^>]+ alt=">:D" title=">:D"[^>]*>)', $html);
|
||||
}
|
||||
}
|
||||
|
@@ -30,9 +30,9 @@ class phpbb_functional_feed_test extends phpbb_functional_test_case
|
||||
{
|
||||
parent::__construct($name, $data, $dataName);
|
||||
|
||||
$this->excludeBackupStaticAttributes([
|
||||
$this->backupStaticAttributesExcludeList += [
|
||||
'phpbb_functional_feed_test' => ['init_values'],
|
||||
]);
|
||||
];
|
||||
|
||||
$this->purge_cache();
|
||||
}
|
||||
|
@@ -78,7 +78,7 @@ class phpbb_functional_posting_test extends phpbb_functional_test_case
|
||||
|
||||
$crawler = self::request('GET', "posting.php?mode=quote&p={$post['post_id']}&sid={$this->sid}");
|
||||
|
||||
$this->assertRegexp($expected, $crawler->filter('textarea#message')->text());
|
||||
$this->assertMatchesRegularExpression($expected, $crawler->filter('textarea#message')->text());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -122,7 +122,7 @@ class phpbb_functional_posting_test extends phpbb_functional_test_case
|
||||
{
|
||||
$this->set_quote_depth($quote_depth);
|
||||
$crawler = self::request('GET', $quote_url);
|
||||
$this->assertRegexp(
|
||||
$this->assertMatchesRegularExpression(
|
||||
"(\[quote=admin[^\]]*\]\s?" . preg_quote($expected_text) . "\s?\[\/quote\])",
|
||||
$crawler->filter('textarea#message')->text()
|
||||
);
|
||||
|
@@ -79,7 +79,7 @@ class phpbb_functional_private_messages_test extends phpbb_functional_test_case
|
||||
|
||||
$crawler = self::request('GET', 'ucp.php?i=pm&mode=compose&action=quotepost&p=' . $post['post_id'] . '&sid=' . $this->sid);
|
||||
|
||||
$this->assertRegexp($expected, $crawler->filter('textarea#message')->text());
|
||||
$this->assertMatchesRegularExpression($expected, $crawler->filter('textarea#message')->text());
|
||||
}
|
||||
|
||||
public function test_quote_pm()
|
||||
@@ -92,7 +92,7 @@ class phpbb_functional_private_messages_test extends phpbb_functional_test_case
|
||||
|
||||
$crawler = self::request('GET', 'ucp.php?i=pm&mode=compose&action=quote&p=' . $message_id . '&sid=' . $this->sid);
|
||||
|
||||
$this->assertRegexp($expected, $crawler->filter('textarea#message')->text());
|
||||
$this->assertMatchesRegularExpression($expected, $crawler->filter('textarea#message')->text());
|
||||
}
|
||||
|
||||
public function test_quote_forward()
|
||||
@@ -105,6 +105,6 @@ class phpbb_functional_private_messages_test extends phpbb_functional_test_case
|
||||
|
||||
$crawler = self::request('GET', 'ucp.php?i=pm&mode=compose&action=forward&f=0&p=' . $message_id . '&sid=' . $this->sid);
|
||||
|
||||
$this->assertRegexp($expected, $crawler->filter('textarea#message')->text());
|
||||
$this->assertMatchesRegularExpression($expected, $crawler->filter('textarea#message')->text());
|
||||
}
|
||||
}
|
||||
|
@@ -22,9 +22,9 @@ class phpbb_functional_ucp_allow_pm_test extends phpbb_functional_test_case
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
$this->excludeBackupStaticAttributes([
|
||||
$this->backupStaticAttributesExcludeList += [
|
||||
'phpbb_functional_ucp_allow_pm_test' => ['data'],
|
||||
]);
|
||||
];
|
||||
}
|
||||
|
||||
// user A sends a PM to user B where B accepts PM
|
||||
|
Reference in New Issue
Block a user